diff options
Diffstat (limited to 'arch/powerpc/platforms/powermac/setup.c')
| -rw-r--r-- | arch/powerpc/platforms/powermac/setup.c | 5 |
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 | ||
