]> err.no Git - linux-2.6/commitdiff
[POWERPC] 8xx: Remove unnecessary loops_per_jiffy initialization code
authorJon Loeliger <jdl@freescale.com>
Fri, 27 Jul 2007 18:24:59 +0000 (04:24 +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: Vitaly Bordug <vitb@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
arch/powerpc/platforms/8xx/mpc86xads_setup.c
arch/powerpc/platforms/8xx/mpc885ads_setup.c

index cf0e7bc8c2e77350749bc85e75480c83e743b5a5..d881647e99231c1984b94b8c6d0b81405e4c7cff 100644 (file)
@@ -254,20 +254,6 @@ int platform_device_skip(const char *model, int id)
 
 static void __init mpc86xads_setup_arch(void)
 {
-       struct device_node *cpu;
-
-       cpu = of_find_node_by_type(NULL, "cpu");
-       if (cpu != 0) {
-               const unsigned int *fp;
-
-               fp = of_get_property(cpu, "clock-frequency", NULL);
-               if (fp != 0)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(cpu);
-       }
-
        cpm_reset();
 
        mpc86xads_board_setup();
index 5a808d611ae3884a5e4160ffee4260cde4e3ef16..bd5ff7a892e0e2d41b031e3aed38625057d6424e 100644 (file)
@@ -406,20 +406,6 @@ int platform_device_skip(const char *model, int id)
 
 static void __init mpc885ads_setup_arch(void)
 {
-       struct device_node *cpu;
-
-       cpu = of_find_node_by_type(NULL, "cpu");
-       if (cpu != 0) {
-               const unsigned int *fp;
-
-               fp = of_get_property(cpu, "clock-frequency", NULL);
-               if (fp != 0)
-                       loops_per_jiffy = *fp / HZ;
-               else
-                       loops_per_jiffy = 50000000 / HZ;
-               of_node_put(cpu);
-       }
-
        cpm_reset();
 
        mpc885ads_board_setup();