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 /drivers/macintosh/via-pmu.c | |
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 'drivers/macintosh/via-pmu.c')
-rw-r--r-- | drivers/macintosh/via-pmu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/macintosh/via-pmu.c b/drivers/macintosh/via-pmu.c index 75623fd18792..7b7db5db50dc 100644 --- a/drivers/macintosh/via-pmu.c +++ b/drivers/macintosh/via-pmu.c @@ -319,10 +319,13 @@ int __init find_via_pmu(void) else if (device_is_compatible(vias->parent, "Keylargo") || device_is_compatible(vias->parent, "K2-Keylargo")) { struct device_node *gpiop; + struct device_node *adbp; u64 gaddr = OF_BAD_ADDR; pmu_kind = PMU_KEYLARGO_BASED; - pmu_has_adb = (find_type_devices("adb") != NULL); + adbp = of_find_node_by_type(NULL, "adb"); + pmu_has_adb = (adbp != NULL); + of_node_put(adbp); pmu_intr_mask = PMU_INT_PCEJECT | PMU_INT_SNDBRT | PMU_INT_ADB | |