From: Stephen Rothwell <sfr@canb.auug.org.au>
To: "Mark A. Greer" <mgreer@mvista.com>
Cc: linuxppc-dev <Linuxppc-dev@ozlabs.org>
Subject: Re: [PATCH 1/2] powerpc: prpmc2800 - Add MTD support
Date: Fri, 26 Oct 2007 10:23:53 +1000 [thread overview]
Message-ID: <20071026102353.b837423b.sfr@canb.auug.org.au> (raw)
In-Reply-To: <20071025233948.GA22703@mag.az.mvista.com>
[-- Attachment #1: Type: text/plain, Size: 650 bytes --]
Hi Mark,
On Thu, 25 Oct 2007 16:39:48 -0700 "Mark A. Greer" <mgreer@mvista.com> wrote:
>
> +static int __init prpmc2800_register_mtd(void)
> +{
> + struct device_node *np = NULL;
^^^^^^^
Not needed if you use for_each_compatible_node().
> +
> + while ((np = of_find_compatible_node(np, NULL, "cfi-flash")) != NULL)
for_each_compatible_node(np, NULL, "cfi-flash")
> + of_platform_device_create(np, NULL, NULL);
> +
> + of_node_put(np);
Not needed as np must be NULL when you get here.
--
Cheers,
Stephen Rothwell sfr@canb.auug.org.au
http://www.canb.auug.org.au/~sfr/
[-- Attachment #2: Type: application/pgp-signature, Size: 189 bytes --]
next prev parent reply other threads:[~2007-10-26 0:23 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-10-25 23:39 [PATCH 1/2] powerpc: prpmc2800 - Add MTD support Mark A. Greer
2007-10-25 23:42 ` [PATCH 2/2] powerpc: prpmc2800 - Don't overwrite user FLASH size Mark A. Greer
2007-10-26 0:23 ` Stephen Rothwell [this message]
2007-10-26 1:06 ` [PATCH 1/2] powerpc: prpmc2800 - Add MTD support Mark A. Greer
2007-10-26 2:19 ` [PATCH v2 " Mark A. Greer
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=20071026102353.b837423b.sfr@canb.auug.org.au \
--to=sfr@canb.auug.org.au \
--cc=Linuxppc-dev@ozlabs.org \
--cc=mgreer@mvista.com \
/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