mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-12-28 05:24:47 +08:00
powerpc/wii: Probe the whole devicetree
Previously, wii_device_probe would only initialize devices under the /hollywood node. After this patch, platform devices placed outside of /hollywood will also be initialized. The intended usecase for this are devices located outside of the Hollywood chip, such as GPIO LEDs and GPIO buttons. Signed-off-by: Jonathan Neuschäfer <j.neuschaefer@gmx.net> Signed-off-by: Michael Ellerman <mpe@ellerman.id.au>
This commit is contained in:
parent
1d0afc0d5a
commit
7ab96c0a08
@ -239,7 +239,7 @@ static int __init wii_device_probe(void)
|
|||||||
if (!machine_is(wii))
|
if (!machine_is(wii))
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
of_platform_bus_probe(NULL, wii_of_bus, NULL);
|
of_platform_populate(NULL, wii_of_bus, NULL, NULL);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
device_initcall(wii_device_probe);
|
device_initcall(wii_device_probe);
|
||||||
|
Loading…
Reference in New Issue
Block a user