diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-24 13:51:59 +1000 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-24 22:09:01 +1000 |
commit | 1658ab66781d918f604c6069c5cf9a94b6f52f84 (patch) | |
tree | 059e9b6ba2e893402fa9cf1a5e3ce47bf9095bfd /arch/powerpc/platforms/chrp | |
parent | 8c8dc322486d5394dc981bef9276dd0ce6c8d1ce (diff) | |
download | talos-obmc-linux-1658ab66781d918f604c6069c5cf9a94b6f52f84.tar.gz talos-obmc-linux-1658ab66781d918f604c6069c5cf9a94b6f52f84.zip |
[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/chrp')
-rw-r--r-- | arch/powerpc/platforms/chrp/setup.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/powerpc/platforms/chrp/setup.c b/arch/powerpc/platforms/chrp/setup.c index e46c4d4a5804..9c1b231b1ff9 100644 --- a/arch/powerpc/platforms/chrp/setup.c +++ b/arch/powerpc/platforms/chrp/setup.c @@ -226,12 +226,12 @@ static void __init pegasos_set_l2cr(void) return; /* Enable L2 cache if needed */ - np = find_type_devices("cpu"); + np = of_find_node_by_type(NULL, "cpu"); if (np != NULL) { const unsigned int *l2cr = of_get_property(np, "l2cr", NULL); if (l2cr == NULL) { printk ("Pegasos l2cr : no cpu l2cr property found\n"); - return; + goto out; } if (!((*l2cr) & 0x80000000)) { printk ("Pegasos l2cr : L2 cache was not active, " @@ -240,6 +240,8 @@ static void __init pegasos_set_l2cr(void) _set_L2CR((*l2cr) | 0x80000000); } } +out: + of_node_put(np); } static void briq_restart(char *cmd) |