* [PATCH] pasemi: only call of_platform_bus_probe() on relevant platforms
@ 2007-05-01 4:43 Olof Johansson
2007-05-01 5:29 ` Benjamin Herrenschmidt
0 siblings, 1 reply; 2+ messages in thread
From: Olof Johansson @ 2007-05-01 4:43 UTC (permalink / raw)
To: paulus; +Cc: linuxppc-dev
Only publish of_platform devices if running on a machine that has them.
Signed-off-by: Olof Johansson <olof@lixom.net>
diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
index f88f0ec..38bd903 100644
--- a/arch/powerpc/platforms/pasemi/setup.c
+++ b/arch/powerpc/platforms/pasemi/setup.c
@@ -211,7 +211,10 @@ static struct of_device_id pasemi_bus_ids[] = {
static int __init pasemi_publish_devices(void)
{
- /* Publish OF platform devices for southbridge IOs */
+ if (!machine_is(pasemi))
+ return 0;
+
+ /* Publish OF platform devices for SDC and other non-PCI devices */
of_platform_bus_probe(NULL, pasemi_bus_ids, NULL);
return 0;
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] pasemi: only call of_platform_bus_probe() on relevant platforms
2007-05-01 4:43 [PATCH] pasemi: only call of_platform_bus_probe() on relevant platforms Olof Johansson
@ 2007-05-01 5:29 ` Benjamin Herrenschmidt
0 siblings, 0 replies; 2+ messages in thread
From: Benjamin Herrenschmidt @ 2007-05-01 5:29 UTC (permalink / raw)
To: Olof Johansson; +Cc: linuxppc-dev, paulus
On Mon, 2007-04-30 at 23:43 -0500, Olof Johansson wrote:
> Only publish of_platform devices if running on a machine that has them.
>
>
> Signed-off-by: Olof Johansson <olof@lixom.net>
Acked-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
> diff --git a/arch/powerpc/platforms/pasemi/setup.c b/arch/powerpc/platforms/pasemi/setup.c
> index f88f0ec..38bd903 100644
> --- a/arch/powerpc/platforms/pasemi/setup.c
> +++ b/arch/powerpc/platforms/pasemi/setup.c
> @@ -211,7 +211,10 @@ static struct of_device_id pasemi_bus_ids[] = {
>
> static int __init pasemi_publish_devices(void)
> {
> - /* Publish OF platform devices for southbridge IOs */
> + if (!machine_is(pasemi))
> + return 0;
> +
> + /* Publish OF platform devices for SDC and other non-PCI devices */
> of_platform_bus_probe(NULL, pasemi_bus_ids, NULL);
>
> return 0;
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2007-05-01 5:29 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2007-05-01 4:43 [PATCH] pasemi: only call of_platform_bus_probe() on relevant platforms Olof Johansson
2007-05-01 5:29 ` Benjamin Herrenschmidt
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).