[POWERPC] embedded6xx: Remove unnecessary loops_per_jiffy initialization code
authorJon Loeliger <jdl@freescale.com>
Fri, 27 Jul 2007 18:25:09 +0000 (04:25 +1000)
committerPaul Mackerras <paulus@samba.org>
Fri, 17 Aug 2007 01:01:51 +0000 (11:01 +1000)
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Mark A. Greer <mgreer@mvista.com>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/embedded6xx/holly.c
arch/powerpc/platforms/embedded6xx/prpmc2800.c

index 6292e36dc57744605b6bd2e762a03ba0bab3344b..76620913a9dc575e497ef30a49d4c7cc1f3d4303 100644 (file)
@@ -113,23 +113,11 @@ static void holly_remap_bridge(void)
 
 static void __init holly_setup_arch(void)
 {
-       struct device_node *cpu;
        struct device_node *np;
 
        if (ppc_md.progress)
                ppc_md.progress("holly_setup_arch():set_bridge", 0);
 
-       cpu = of_find_node_by_type(NULL, "cpu");
-       if (cpu) {
-               const unsigned int *fp;
-
-               fp = of_get_property(cpu, "clock-frequency", NULL);
-               if (fp)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(cpu);
-       }
        tsi108_csr_vir_base = get_vir_csrbase();
 
        /* setup PCI host bridge */
index 53420951dc53a52733e4f8c83aea68bf17e5ecc8..54675648d6deb5482c442c471357805e14d1534a 100644 (file)
@@ -44,7 +44,6 @@ static void __init prpmc2800_setup_arch(void)
        struct device_node *np;
        phys_addr_t paddr;
        const unsigned int *reg;
-       const unsigned int *prop;
 
        /*
         * ioremap mpp and gpp registers in case they are later
@@ -62,12 +61,6 @@ static void __init prpmc2800_setup_arch(void)
        of_node_put(np);
        mv64x60_gpp_reg_base = ioremap(paddr, reg[1]);
 
-       np = of_find_node_by_type(NULL, "cpu");
-       prop = of_get_property(np, "clock-frequency", NULL);
-       if (prop)
-               loops_per_jiffy = *prop / HZ;
-       of_node_put(np);
-
 #ifdef CONFIG_PCI
        mv64x60_pci_init();
 #endif