diff options
author | Jon Loeliger <jdl@freescale.com> | 2007-07-27 14:24:45 -0400 |
---|---|---|
committer | Kumar Gala <galak@kernel.crashing.org> | 2007-09-14 09:51:36 -0400 |
commit | 683d00b03eb09a140e25d7f1457d347277bc2619 (patch) | |
tree | 491feb1ca7dded36b58ad4e2c7cd0f7415570cdb /arch/powerpc | |
parent | d347b3291b284e42c90b3f675a8332daf890b85a (diff) |
[POWERPC] 85xx: Remove unnecessary loops_per_jiffy initialization code.
Signed-off-by: Jon Loeliger <jdl@freescale.com>
Signed-off-by: Kumar Gala <galak@kernel.crashing.org>
Diffstat (limited to 'arch/powerpc')
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_ads.c | 13 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_cds.c | 13 | ||||
-rw-r--r-- | arch/powerpc/platforms/85xx/mpc85xx_mds.c | 11 |
3 files changed, 0 insertions, 37 deletions
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_ads.c b/arch/powerpc/platforms/85xx/mpc85xx_ads.c index 40a828675c7b..c22bc1c4f591 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_ads.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_ads.c | |||
@@ -192,7 +192,6 @@ void init_fcc_ioports(struct fs_platform_info *fpi) | |||
192 | 192 | ||
193 | static void __init mpc85xx_ads_setup_arch(void) | 193 | static void __init mpc85xx_ads_setup_arch(void) |
194 | { | 194 | { |
195 | struct device_node *cpu; | ||
196 | #ifdef CONFIG_PCI | 195 | #ifdef CONFIG_PCI |
197 | struct device_node *np; | 196 | struct device_node *np; |
198 | #endif | 197 | #endif |
@@ -200,18 +199,6 @@ static void __init mpc85xx_ads_setup_arch(void) | |||
200 | if (ppc_md.progress) | 199 | if (ppc_md.progress) |
201 | ppc_md.progress("mpc85xx_ads_setup_arch()", 0); | 200 | ppc_md.progress("mpc85xx_ads_setup_arch()", 0); |
202 | 201 | ||
203 | cpu = of_find_node_by_type(NULL, "cpu"); | ||
204 | if (cpu != 0) { | ||
205 | const unsigned int *fp; | ||
206 | |||
207 | fp = of_get_property(cpu, "clock-frequency", NULL); | ||
208 | if (fp != 0) | ||
209 | loops_per_jiffy = *fp / HZ; | ||
210 | else | ||
211 | loops_per_jiffy = 50000000 / HZ; | ||
212 | of_node_put(cpu); | ||
213 | } | ||
214 | |||
215 | #ifdef CONFIG_CPM2 | 202 | #ifdef CONFIG_CPM2 |
216 | cpm2_reset(); | 203 | cpm2_reset(); |
217 | #endif | 204 | #endif |
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_cds.c b/arch/powerpc/platforms/85xx/mpc85xx_cds.c index b46c8d50f6d1..665e8df05dc5 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_cds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_cds.c | |||
@@ -265,7 +265,6 @@ device_initcall(mpc85xx_cds_8259_attach); | |||
265 | */ | 265 | */ |
266 | static void __init mpc85xx_cds_setup_arch(void) | 266 | static void __init mpc85xx_cds_setup_arch(void) |
267 | { | 267 | { |
268 | struct device_node *cpu; | ||
269 | #ifdef CONFIG_PCI | 268 | #ifdef CONFIG_PCI |
270 | struct device_node *np; | 269 | struct device_node *np; |
271 | #endif | 270 | #endif |
@@ -273,18 +272,6 @@ static void __init mpc85xx_cds_setup_arch(void) | |||
273 | if (ppc_md.progress) | 272 | if (ppc_md.progress) |
274 | ppc_md.progress("mpc85xx_cds_setup_arch()", 0); | 273 | ppc_md.progress("mpc85xx_cds_setup_arch()", 0); |
275 | 274 | ||
276 | cpu = of_find_node_by_type(NULL, "cpu"); | ||
277 | if (cpu != 0) { | ||
278 | const unsigned int *fp; | ||
279 | |||
280 | fp = of_get_property(cpu, "clock-frequency", NULL); | ||
281 | if (fp != 0) | ||
282 | loops_per_jiffy = *fp / HZ; | ||
283 | else | ||
284 | loops_per_jiffy = 500000000 / HZ; | ||
285 | of_node_put(cpu); | ||
286 | } | ||
287 | |||
288 | cadmus = ioremap(CADMUS_BASE, CADMUS_SIZE); | 275 | cadmus = ioremap(CADMUS_BASE, CADMUS_SIZE); |
289 | cds_pci_slot = ((cadmus[CM_CSR] >> 6) & 0x3) + 1; | 276 | cds_pci_slot = ((cadmus[CM_CSR] >> 6) & 0x3) + 1; |
290 | 277 | ||
diff --git a/arch/powerpc/platforms/85xx/mpc85xx_mds.c b/arch/powerpc/platforms/85xx/mpc85xx_mds.c index 66366a023820..c379286c3730 100644 --- a/arch/powerpc/platforms/85xx/mpc85xx_mds.c +++ b/arch/powerpc/platforms/85xx/mpc85xx_mds.c | |||
@@ -72,17 +72,6 @@ static void __init mpc85xx_mds_setup_arch(void) | |||
72 | if (ppc_md.progress) | 72 | if (ppc_md.progress) |
73 | ppc_md.progress("mpc85xx_mds_setup_arch()", 0); | 73 | ppc_md.progress("mpc85xx_mds_setup_arch()", 0); |
74 | 74 | ||
75 | np = of_find_node_by_type(NULL, "cpu"); | ||
76 | if (np != NULL) { | ||
77 | const unsigned int *fp = | ||
78 | of_get_property(np, "clock-frequency", NULL); | ||
79 | if (fp != NULL) | ||
80 | loops_per_jiffy = *fp / HZ; | ||
81 | else | ||
82 | loops_per_jiffy = 50000000 / HZ; | ||
83 | of_node_put(np); | ||
84 | } | ||
85 | |||
86 | /* Map BCSR area */ | 75 | /* Map BCSR area */ |
87 | np = of_find_node_by_name(NULL, "bcsr"); | 76 | np = of_find_node_by_name(NULL, "bcsr"); |
88 | if (np != NULL) { | 77 | if (np != NULL) { |