mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
[POWERPC] Remove old interface find_type_devices
Replaced by of_find_node_by_type. Signed-off-by: Stephen Rothwell <[email protected]> Signed-off-by: Paul Mackerras <[email protected]>
This commit is contained in:
parent
8c8dc32248
commit
1658ab6678
6 changed files with 13 additions and 26 deletions
|
|
@ -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 |
|
||||
|
|
|
|||
Loading…
Reference in a new issue