diff options
author | Jon Loeliger <jdl@freescale.com> | 2007-07-27 14:24:59 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-08-16 21:01:51 -0400 |
commit | c3ca32fdb820d59e63c95115ec5caf2862c85040 (patch) | |
tree | f6fed3a58ebb8a335bc17a2b6c9b54c71d660d44 | |
parent | 7888fbf7bbf8840e83078eae3a537fd1cde46e6e (diff) |
[POWERPC] 8xx: Remove unnecessary loops_per_jiffy initialization code
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Acked-by: Vitaly Bordug <vitb@kernel.crashing.org>
Signed-off-by: Paul Mackerras <paulus@samba.org>
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc86xads_setup.c | 14 | ||||
-rw-r--r-- | arch/powerpc/platforms/8xx/mpc885ads_setup.c | 14 |
2 files changed, 0 insertions, 28 deletions
diff --git a/arch/powerpc/platforms/8xx/mpc86xads_setup.c b/arch/powerpc/platforms/8xx/mpc86xads_setup.c index cf0e7bc8c2e7..d881647e9923 100644 --- a/arch/powerpc/platforms/8xx/mpc86xads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc86xads_setup.c | |||
@@ -254,20 +254,6 @@ int platform_device_skip(const char *model, int id) | |||
254 | 254 | ||
255 | static void __init mpc86xads_setup_arch(void) | 255 | static void __init mpc86xads_setup_arch(void) |
256 | { | 256 | { |
257 | struct device_node *cpu; | ||
258 | |||
259 | cpu = of_find_node_by_type(NULL, "cpu"); | ||
260 | if (cpu != 0) { | ||
261 | const unsigned int *fp; | ||
262 | |||
263 | fp = of_get_property(cpu, "clock-frequency", NULL); | ||
264 | if (fp != 0) | ||
265 | loops_per_jiffy = *fp / HZ; | ||
266 | else | ||
267 | loops_per_jiffy = 50000000 / HZ; | ||
268 | of_node_put(cpu); | ||
269 | } | ||
270 | |||
271 | cpm_reset(); | 257 | cpm_reset(); |
272 | 258 | ||
273 | mpc86xads_board_setup(); | 259 | mpc86xads_board_setup(); |
diff --git a/arch/powerpc/platforms/8xx/mpc885ads_setup.c b/arch/powerpc/platforms/8xx/mpc885ads_setup.c index 5a808d611ae3..bd5ff7a892e0 100644 --- a/arch/powerpc/platforms/8xx/mpc885ads_setup.c +++ b/arch/powerpc/platforms/8xx/mpc885ads_setup.c | |||
@@ -406,20 +406,6 @@ int platform_device_skip(const char *model, int id) | |||
406 | 406 | ||
407 | static void __init mpc885ads_setup_arch(void) | 407 | static void __init mpc885ads_setup_arch(void) |
408 | { | 408 | { |
409 | struct device_node *cpu; | ||
410 | |||
411 | cpu = of_find_node_by_type(NULL, "cpu"); | ||
412 | if (cpu != 0) { | ||
413 | const unsigned int *fp; | ||
414 | |||
415 | fp = of_get_property(cpu, "clock-frequency", NULL); | ||
416 | if (fp != 0) | ||
417 | loops_per_jiffy = *fp / HZ; | ||
418 | else | ||
419 | loops_per_jiffy = 50000000 / HZ; | ||
420 | of_node_put(cpu); | ||
421 | } | ||
422 | |||
423 | cpm_reset(); | 409 | cpm_reset(); |
424 | 410 | ||
425 | mpc885ads_board_setup(); | 411 | mpc885ads_board_setup(); |