From: Teresa Remmet <t.remmet@phytec.de>
To: barebox@lists.infradead.org
Subject: [PATCH 2/7] drivers: i2c: Only register available devices
Date: Fri, 17 Jul 2015 13:13:48 +0200 [thread overview]
Message-ID: <1437131633-9590-2-git-send-email-t.remmet@phytec.de> (raw)
In-Reply-To: <1437131633-9590-1-git-send-email-t.remmet@phytec.de>
Only register i2c devices from device tree where status is enabled.
Signed-off-by: Teresa Remmet <t.remmet@phytec.de>
---
drivers/i2c/i2c.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/i2c/i2c.c b/drivers/i2c/i2c.c
index 5d0fa06..f0df666 100644
--- a/drivers/i2c/i2c.c
+++ b/drivers/i2c/i2c.c
@@ -278,7 +278,7 @@ static void of_i2c_register_devices(struct i2c_adapter *adap)
if (!IS_ENABLED(CONFIG_OFDEVICE) || !adap->dev.device_node)
return;
- for_each_child_of_node(adap->dev.device_node, n) {
+ for_each_available_child_of_node(adap->dev.device_node, n) {
struct i2c_board_info info = {};
struct i2c_client *result;
const __be32 *addr;
--
1.9.1
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
next prev parent reply other threads:[~2015-07-17 11:14 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-07-17 11:13 [PATCH 1/7] mtd: core: Check partitions for empty string Teresa Remmet
2015-07-17 11:13 ` Teresa Remmet [this message]
2015-07-17 14:59 ` [PATCH 2/7] drivers: i2c: Only register available devices Jan Lübbe
2015-07-17 11:13 ` [PATCH 3/7] ARM: dts: am335x-phytec boards: Fixup spi flash node name Teresa Remmet
2015-07-17 11:13 ` [PATCH 4/7] ARM: dts: phyFLEX-AM335x-som: Disable eeprom on default Teresa Remmet
2015-07-17 11:13 ` [PATCH 5/7] ARM: phytec-som-am335x: Add support for 1024MiB RAM on one chip Teresa Remmet
2015-07-17 11:13 ` [PATCH 6/7] ARM: dts: Add support for all phyCORE-AM335x options Teresa Remmet
2015-07-17 11:13 ` [PATCH 7/7] ARM: dts: Add support for all phyFLEX-AM335x options Teresa Remmet
2015-07-20 5:14 ` [PATCH 1/7] mtd: core: Check partitions for empty string Sascha Hauer
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=1437131633-9590-2-git-send-email-t.remmet@phytec.de \
--to=t.remmet@phytec.de \
--cc=barebox@lists.infradead.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