From: Benjamin Herrenschmidt <benh@kernel.crashing.org>
To: Olof Johansson <olof@lixom.net>
Cc: linuxppc-dev@ozlabs.org, paulus@samba.org
Subject: Re: [PATCH] pasemi: only call of_platform_bus_probe() on relevant platforms
Date: Tue, 01 May 2007 15:29:51 +1000 [thread overview]
Message-ID: <1177997391.24962.17.camel@localhost.localdomain> (raw)
In-Reply-To: <20070501044339.GA5194@lixom.net>
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;
prev parent reply other threads:[~2007-05-01 5:29 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
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 message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1177997391.24962.17.camel@localhost.localdomain \
--to=benh@kernel.crashing.org \
--cc=linuxppc-dev@ozlabs.org \
--cc=olof@lixom.net \
--cc=paulus@samba.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
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).