From: Rob Herring <robherring2@gmail.com>
To: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
Cc: devicetree-discuss@lists.ozlabs.org,
Grant Likely <grant.likely@secretlab.ca>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] of/i2c: don't register disabled devices
Date: Wed, 20 Feb 2013 13:09:05 -0600 [thread overview]
Message-ID: <51251F51.2010003@gmail.com> (raw)
In-Reply-To: <1361384904-13853-1-git-send-email-dmitry_eremin@mentor.com>
On 02/20/2013 12:28 PM, Dmitry Eremin-Solenikov wrote:
> Don't register i2c slave device tree nodes which have
> status = "disabled" property.
>
This is already in 3.8.
Rob
> Signed-off-by: Dmitry Eremin-Solenikov <dmitry_eremin@mentor.com>
> ---
> drivers/of/of_i2c.c | 3 +++
> 1 file changed, 3 insertions(+)
>
> diff --git a/drivers/of/of_i2c.c b/drivers/of/of_i2c.c
> index 1e173f3..63f3236 100644
> --- a/drivers/of/of_i2c.c
> +++ b/drivers/of/of_i2c.c
> @@ -35,6 +35,9 @@ void of_i2c_register_devices(struct i2c_adapter *adap)
> const __be32 *addr;
> int len;
>
> + if (!of_device_is_available(node))
> + continue;
> +
> dev_dbg(&adap->dev, "of_i2c: register %s\n", node->full_name);
>
> if (of_modalias_node(node, info.type, sizeof(info.type)) < 0) {
>
next prev parent reply other threads:[~2013-02-20 19:09 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-02-20 18:28 [PATCH] of/i2c: don't register disabled devices Dmitry Eremin-Solenikov
2013-02-20 19:09 ` Rob Herring [this message]
2013-02-21 1:32 ` Dmitry Eremin-Solenikov
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=51251F51.2010003@gmail.com \
--to=robherring2@gmail.com \
--cc=devicetree-discuss@lists.ozlabs.org \
--cc=dmitry_eremin@mentor.com \
--cc=grant.likely@secretlab.ca \
--cc=linux-kernel@vger.kernel.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