]> err.no Git - linux-2.6/commitdiff
[POWERPC] 52xx: Remove unnecessary loops_per_jiffy initialization code
authorJon Loeliger <jdl@freescale.com>
Fri, 27 Jul 2007 18:24:52 +0000 (04:24 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:01:50 +0000 (11:01 +1000)
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/52xx/lite5200.c

index 5c46e898fd4526dc3a4f69681d132a26505cf1cc..84bd3da43afd6b5542ed7a98a070d9ee4d7d0759 100644 (file)
@@ -109,22 +109,13 @@ static void lite5200_resume_finish(void __iomem *mbar)
 
 static void __init lite5200_setup_arch(void)
 {
+#ifdef CONFIG_PCI
        struct device_node *np;
+#endif
 
        if (ppc_md.progress)
                ppc_md.progress("lite5200_setup_arch()", 0);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       if (np) {
-               const unsigned int *fp =
-                       of_get_property(np, "clock-frequency", NULL);
-               if (fp != 0)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(np);
-       }
-
        /* CPU & Port mux setup */
        mpc52xx_setup_cpu();    /* Generic */
        lite5200_setup_cpu();   /* Platorm specific */