From: Heiko Schocher <hs@denx.de>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [Patch] 8xx: MGSUVD support
Date: Mon, 10 Mar 2008 07:34:46 +0100 [thread overview]
Message-ID: <47D4D686.8010101@denx.de> (raw)
In-Reply-To: <20080310143217.11e2b10f.sfr@canb.auug.org.au>
Hello Stephen,
Stephen Rothwell wrote:
> On Sun, 09 Mar 2008 10:56:29 +0100 Heiko Schocher <hs@denx.de> wrote:
>> +++ b/arch/powerpc/platforms/8xx/mgsuvd.c
>>
>> +#include <asm/of_platform.h>
>
> You should include linux/of_platform.h (not asm/)
Ok.
>> +static struct cpm_pin mgsuvd_pins[] = {
>
> Make this __initdata, please.
Argh... forgot this.
[...]
>> +static struct of_device_id __initdata of_bus_ids[] = {
>
> Make this __initdata, please.
Hmm.. it is __initdata, or? But I fix it to:
static __initdata struct of_device_id of_bus_ids[]
>> +static int __init declare_of_platform_devices(void)
>> +{
>> + if (!machine_is(mgsuvd))
>> + return 0;
>> +
>> + of_platform_bus_probe(NULL, of_bus_ids, NULL);
>> +
>> + return 0;
>> +}
>> +device_initcall(declare_of_platform_devices);
>
> This should be "machine_device_initcall(mgsuvd,
> declare_of_platform_devices);" then you don't need the machine_is() check
> above.
Ok
I will send a overworked patch.
bye,
Heiko
--
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
next prev parent reply other threads:[~2008-03-10 6:27 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-03-09 9:56 [Patch] 8xx: MGSUVD support Heiko Schocher
2008-03-09 16:59 ` Vitaly Bordug
2008-03-10 6:33 ` Heiko Schocher
2008-03-17 22:38 ` Scott Wood
2008-03-18 0:27 ` Vitaly Bordug
2008-03-10 3:32 ` Stephen Rothwell
2008-03-10 6:34 ` Heiko Schocher [this message]
2008-03-10 6:35 ` Stephen Rothwell
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=47D4D686.8010101@denx.de \
--to=hs@denx.de \
--cc=linuxppc-dev@ozlabs.org \
--cc=sfr@canb.auug.org.au \
/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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.