aboutsummaryrefslogtreecommitdiffstats
path: root/arch/powerpc/platforms/powermac/setup.c
diff options
context:
space:
mode:
authorStephen Rothwell <sfr@canb.auug.org.au>2007-04-23 23:51:59 -0400
committerPaul Mackerras <paulus@samba.org>2007-04-24 08:09:01 -0400
commit1658ab66781d918f604c6069c5cf9a94b6f52f84 (patch)
tree059e9b6ba2e893402fa9cf1a5e3ce47bf9095bfd /arch/powerpc/platforms/powermac/setup.c
parent8c8dc322486d5394dc981bef9276dd0ce6c8d1ce (diff)
[POWERPC] Remove old interface find_type_devices
Replaced by of_find_node_by_type. Signed-off-by: Stephen Rothwell <sfr@canb.auug.org.au> Signed-off-by: Paul Mackerras <paulus@samba.org>
Diffstat (limited to 'arch/powerpc/platforms/powermac/setup.c')
-rw-r--r--arch/powerpc/platforms/powermac/setup.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/powermac/setup.c b/arch/powerpc/platforms/powermac/setup.c
index 8c96f2461e9a..ae37d3e23783 100644
--- a/arch/powerpc/platforms/powermac/setup.c
+++ b/arch/powerpc/platforms/powermac/setup.c
@@ -250,9 +250,9 @@ static void __init l2cr_init(void)
250{ 250{
251 /* Checks "l2cr-value" property in the registry */ 251 /* Checks "l2cr-value" property in the registry */
252 if (cpu_has_feature(CPU_FTR_L2CR)) { 252 if (cpu_has_feature(CPU_FTR_L2CR)) {
253 struct device_node *np = find_devices("cpus"); 253 struct device_node *np = of_find_node_by_name(NULL, "cpus");
254 if (np == 0) 254 if (np == 0)
255 np = find_type_devices("cpu"); 255 np = of_find_node_by_type(NULL, "cpu");
256 if (np != 0) { 256 if (np != 0) {
257 const unsigned int *l2cr = 257 const unsigned int *l2cr =
258 of_get_property(np, "l2cr-value", NULL); 258 of_get_property(np, "l2cr-value", NULL);
@@ -262,6 +262,7 @@ static void __init l2cr_init(void)
262 _set_L2CR(0); 262 _set_L2CR(0);
263 _set_L2CR(ppc_override_l2cr_value); 263 _set_L2CR(ppc_override_l2cr_value);
264 } 264 }
265 of_node_put(np);
265 } 266 }
266 } 267 }
267 268