From: Anton Vorontsov <avorontsov@ru.mvista.com>
To: Stephen Rothwell <sfr@canb.auug.org.au>
Cc: linuxppc-dev@ozlabs.org
Subject: Re: [PATCH] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig
Date: Thu, 24 Jan 2008 16:29:01 +0300 [thread overview]
Message-ID: <20080124132900.GA25982@localhost.localdomain> (raw)
In-Reply-To: <20080124132201.c3086756.sfr@canb.auug.org.au>
On Thu, Jan 24, 2008 at 01:22:01PM +1100, Stephen Rothwell wrote:
> On Wed, 23 Jan 2008 23:45:07 +0300 Anton Vorontsov <avorontsov@ru.mvista.com> wrote:
> >
> > +++ b/arch/powerpc/platforms/83xx/mpc836x_rdk.c
> > +static int __init mpc836x_rdk_declare_of_platform_devices(void)
> > +{
> > + const struct of_device_id mpc836x_rdk_ids[] = {
>
> Please change this to static, __initdata and not const, thanks. These
> arrays are usually defined outside a function, but that is not really a
> problem.
Pity... we don't need these _ids anywhere outside that function. But
looking into objdump output I see the problem now.
Will change this back, thanks.
> > +static void __init mpc836x_rdk_setup_arch(void)
> > +{
> > + struct device_node *np;
>
> !defined(CONFIG_PCI) && !defined(CONFIG_QUICC_ENGINE) will produce a
> warning here.
Good catch, thanks.
> > + if (ppc_md.progress)
> > + ppc_md.progress("mpc836x_rdk_setup_arch()", 0);
> > +
> > +#ifdef CONFIG_PCI
> > + for_each_compatible_node(np, "pci", "fsl,mpc8349-pci")
> > + mpc83xx_add_bridge(np);
> > +#endif
> > +
> > +#ifdef CONFIG_QUICC_ENGINE
> > + qe_reset();
> > +
> > + np = of_find_compatible_node(NULL, NULL, "fsl,qe-pario");
> > + if (!np) {
> > + pr_warning("QE PIO not initialized!\n");
> > + return;
>
> You need an of_node_put(np) before the return.
Hm, really? I think I don't. But if you insist... :-)
--
Anton Vorontsov
email: cbou@mail.ru
backup email: ya-cbou@yandex.ru
irc://irc.freenode.net/bd2
next prev parent reply other threads:[~2008-01-24 13:29 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-01-23 20:45 [PATCH] [POWERPC] MPC8360E-RDK: device tree, board file and defconfig Anton Vorontsov
2008-01-24 2:22 ` Stephen Rothwell
2008-01-24 13:29 ` Anton Vorontsov [this message]
2008-01-24 20:58 ` Stephen Rothwell
2008-01-25 14:23 ` [PATCH v3] " Anton Vorontsov
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=20080124132900.GA25982@localhost.localdomain \
--to=avorontsov@ru.mvista.com \
--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 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).