powerpc/wii: Probe the whole devicetree
authorJonathan Neuschäfer <j.neuschaefer@gmx.net>
Tue, 6 Feb 2018 12:37:04 +0000 (13:37 +0100)
committerMichael Ellerman <mpe@ellerman.id.au>
Sat, 31 Mar 2018 13:47:39 +0000 (00:47 +1100)
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>
arch/powerpc/platforms/embedded6xx/wii.c

index 3fd683e..ef2b02b 100644 (file)
@@ -239,7 +239,7 @@ static int __init wii_device_probe(void)
        if (!machine_is(wii))
                return 0;
 
-       of_platform_bus_probe(NULL, wii_of_bus, NULL);
+       of_platform_populate(NULL, wii_of_bus, NULL, NULL);
        return 0;
 }
 device_initcall(wii_device_probe);