diff options
author | Stephen Rothwell <sfr@canb.auug.org.au> | 2007-04-23 23:48:41 -0400 |
---|---|---|
committer | Paul Mackerras <paulus@samba.org> | 2007-04-24 08:08:57 -0400 |
commit | 4bf56e1725a298fb430977cf143ad3a36c91b46a (patch) | |
tree | fb5137da1813d76b660a91c015e8a1cf5f7a38f3 /arch/powerpc/platforms/chrp | |
parent | 621023072524fc0155ed16490255e1ea3aa11585 (diff) |
[POWERPC] Remove find_compatible_devices
This is an old interface and is replaced by of_find_compatible_node.
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/time.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/arch/powerpc/platforms/chrp/time.c b/arch/powerpc/platforms/chrp/time.c index 7d7889026936..96d1e4b3c493 100644 --- a/arch/powerpc/platforms/chrp/time.c +++ b/arch/powerpc/platforms/chrp/time.c | |||
@@ -39,12 +39,17 @@ long __init chrp_time_init(void) | |||
39 | struct resource r; | 39 | struct resource r; |
40 | int base; | 40 | int base; |
41 | 41 | ||
42 | rtcs = find_compatible_devices("rtc", "pnpPNP,b00"); | 42 | rtcs = of_find_compatible_node(NULL, "rtc", "pnpPNP,b00"); |
43 | if (rtcs == NULL) | 43 | if (rtcs == NULL) |
44 | rtcs = find_compatible_devices("rtc", "ds1385-rtc"); | 44 | rtcs = of_find_compatible_node(NULL, "rtc", "ds1385-rtc"); |
45 | if (rtcs == NULL || of_address_to_resource(rtcs, 0, &r)) | 45 | if (rtcs == NULL) |
46 | return 0; | ||
47 | if (of_address_to_resource(rtcs, 0, &r)) { | ||
48 | of_node_put(rtcs); | ||
46 | return 0; | 49 | return 0; |
47 | 50 | } | |
51 | of_node_put(rtcs); | ||
52 | |||
48 | base = r.start; | 53 | base = r.start; |
49 | nvram_as1 = 0; | 54 | nvram_as1 = 0; |
50 | nvram_as0 = base; | 55 | nvram_as0 = base; |