* [PATCH] powerpc: wii: Probe the whole devicetree
@ 2018-02-06 12:37 Jonathan Neuschäfer
2018-03-31 14:03 ` Michael Ellerman
0 siblings, 1 reply; 2+ messages in thread
From: Jonathan Neuschäfer @ 2018-02-06 12:37 UTC (permalink / raw)
To: linuxppc-dev
Cc: Joel Stanley, Jonathan Neuschäfer, Benjamin Herrenschmidt,
Paul Mackerras, Michael Ellerman, linux-kernel
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>
---
arch/powerpc/platforms/embedded6xx/wii.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/arch/powerpc/platforms/embedded6xx/wii.c b/arch/powerpc/platforms/embedded6xx/wii.c
index f598d5fe1d72..4de26c3c4f6d 100644
--- a/arch/powerpc/platforms/embedded6xx/wii.c
+++ b/arch/powerpc/platforms/embedded6xx/wii.c
@@ -248,7 +248,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);
--
2.15.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: powerpc: wii: Probe the whole devicetree
2018-02-06 12:37 [PATCH] powerpc: wii: Probe the whole devicetree Jonathan Neuschäfer
@ 2018-03-31 14:03 ` Michael Ellerman
0 siblings, 0 replies; 2+ messages in thread
From: Michael Ellerman @ 2018-03-31 14:03 UTC (permalink / raw)
To: Jonathan Neuschäfer, linuxppc-dev
Cc: linux-kernel, Jonathan Neuschäfer, Paul Mackerras,
Joel Stanley
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 558 bytes --]
On Tue, 2018-02-06 at 12:37:04 UTC, =?utf-8?q?Jonathan_Neusch=C3=A4fer?= wrote:
> 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>
Applied to powerpc next, thanks.
https://git.kernel.org/powerpc/c/7ab96c0a083f3a298ae595ea142058
cheers
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2018-03-31 14:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2018-02-06 12:37 [PATCH] powerpc: wii: Probe the whole devicetree Jonathan Neuschäfer
2018-03-31 14:03 ` Michael Ellerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).