diff options
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) | |||
319 | else if (device_is_compatible(vias->parent, "Keylargo") | 319 | else if (device_is_compatible(vias->parent, "Keylargo") |
320 | || device_is_compatible(vias->parent, "K2-Keylargo")) { | 320 | || device_is_compatible(vias->parent, "K2-Keylargo")) { |
321 | struct device_node *gpiop; | 321 | struct device_node *gpiop; |
322 | struct device_node *adbp; | ||
322 | u64 gaddr = OF_BAD_ADDR; | 323 | u64 gaddr = OF_BAD_ADDR; |
323 | 324 | ||
324 | pmu_kind = PMU_KEYLARGO_BASED; | 325 | pmu_kind = PMU_KEYLARGO_BASED; |
325 | pmu_has_adb = (find_type_devices("adb") != NULL); | 326 | adbp = of_find_node_by_type(NULL, "adb"); |
327 | pmu_has_adb = (adbp != NULL); | ||
328 | of_node_put(adbp); | ||
326 | pmu_intr_mask = PMU_INT_PCEJECT | | 329 | pmu_intr_mask = PMU_INT_PCEJECT | |
327 | PMU_INT_SNDBRT | | 330 | PMU_INT_SNDBRT | |
328 | PMU_INT_ADB | | 331 | PMU_INT_ADB | |