diff options
Diffstat (limited to 'arch/powerpc/kernel/setup_64.c')
-rw-r--r-- | arch/powerpc/kernel/setup_64.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/arch/powerpc/kernel/setup_64.c b/arch/powerpc/kernel/setup_64.c index 3733de30e84d..22083ce3cc30 100644 --- a/arch/powerpc/kernel/setup_64.c +++ b/arch/powerpc/kernel/setup_64.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <linux/reboot.h> | 20 | #include <linux/reboot.h> |
21 | #include <linux/delay.h> | 21 | #include <linux/delay.h> |
22 | #include <linux/initrd.h> | 22 | #include <linux/initrd.h> |
23 | #include <linux/ide.h> | ||
24 | #include <linux/seq_file.h> | 23 | #include <linux/seq_file.h> |
25 | #include <linux/ioport.h> | 24 | #include <linux/ioport.h> |
26 | #include <linux/console.h> | 25 | #include <linux/console.h> |
@@ -110,7 +109,7 @@ static void check_smt_enabled(void) | |||
110 | dn = of_find_node_by_path("/options"); | 109 | dn = of_find_node_by_path("/options"); |
111 | 110 | ||
112 | if (dn) { | 111 | if (dn) { |
113 | smt_option = get_property(dn, "ibm,smt-enabled", NULL); | 112 | smt_option = of_get_property(dn, "ibm,smt-enabled", NULL); |
114 | 113 | ||
115 | if (smt_option) { | 114 | if (smt_option) { |
116 | if (!strcmp(smt_option, "on")) | 115 | if (!strcmp(smt_option, "on")) |
@@ -305,10 +304,10 @@ static void __init initialize_cache_info(void) | |||
305 | 304 | ||
306 | size = 0; | 305 | size = 0; |
307 | lsize = cur_cpu_spec->dcache_bsize; | 306 | lsize = cur_cpu_spec->dcache_bsize; |
308 | sizep = get_property(np, "d-cache-size", NULL); | 307 | sizep = of_get_property(np, "d-cache-size", NULL); |
309 | if (sizep != NULL) | 308 | if (sizep != NULL) |
310 | size = *sizep; | 309 | size = *sizep; |
311 | lsizep = get_property(np, dc, NULL); | 310 | lsizep = of_get_property(np, dc, NULL); |
312 | if (lsizep != NULL) | 311 | if (lsizep != NULL) |
313 | lsize = *lsizep; | 312 | lsize = *lsizep; |
314 | if (sizep == 0 || lsizep == 0) | 313 | if (sizep == 0 || lsizep == 0) |
@@ -322,10 +321,10 @@ static void __init initialize_cache_info(void) | |||
322 | 321 | ||
323 | size = 0; | 322 | size = 0; |
324 | lsize = cur_cpu_spec->icache_bsize; | 323 | lsize = cur_cpu_spec->icache_bsize; |
325 | sizep = get_property(np, "i-cache-size", NULL); | 324 | sizep = of_get_property(np, "i-cache-size", NULL); |
326 | if (sizep != NULL) | 325 | if (sizep != NULL) |
327 | size = *sizep; | 326 | size = *sizep; |
328 | lsizep = get_property(np, ic, NULL); | 327 | lsizep = of_get_property(np, ic, NULL); |
329 | if (lsizep != NULL) | 328 | if (lsizep != NULL) |
330 | lsize = *lsizep; | 329 | lsize = *lsizep; |
331 | if (sizep == 0 || lsizep == 0) | 330 | if (sizep == 0 || lsizep == 0) |