mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/2] i2c: only register enabled child nodes
@ 2015-07-08 13:31 Jan Luebbe
  2015-07-08 13:31 ` [PATCH 2/2] spi: " Jan Luebbe
  2015-07-09  8:19 ` [PATCH 1/2] i2c: " Sascha Hauer
  0 siblings, 2 replies; 3+ messages in thread
From: Jan Luebbe @ 2015-07-08 13:31 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
---
 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 7a6bde0..ebc7e23 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;
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* [PATCH 2/2] spi: only register enabled child nodes
  2015-07-08 13:31 [PATCH 1/2] i2c: only register enabled child nodes Jan Luebbe
@ 2015-07-08 13:31 ` Jan Luebbe
  2015-07-09  8:19 ` [PATCH 1/2] i2c: " Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Jan Luebbe @ 2015-07-08 13:31 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jan Luebbe <jluebbe@debian.org>
---
 drivers/spi/spi.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index ba23cf7..99412b0 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -113,7 +113,7 @@ static void spi_of_register_slaves(struct spi_master *master)
 	if (!node)
 		return;
 
-	for_each_child_of_node(node, n) {
+	for_each_available_child_of_node(node, n) {
 		memset(&chip, 0, sizeof(chip));
 		chip.name = xstrdup(n->name);
 		chip.bus_num = master->bus_num;
-- 
2.1.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: [PATCH 1/2] i2c: only register enabled child nodes
  2015-07-08 13:31 [PATCH 1/2] i2c: only register enabled child nodes Jan Luebbe
  2015-07-08 13:31 ` [PATCH 2/2] spi: " Jan Luebbe
@ 2015-07-09  8:19 ` Sascha Hauer
  1 sibling, 0 replies; 3+ messages in thread
From: Sascha Hauer @ 2015-07-09  8:19 UTC (permalink / raw)
  To: Jan Luebbe; +Cc: barebox

On Wed, Jul 08, 2015 at 03:31:02PM +0200, Jan Luebbe wrote:
> Signed-off-by: Jan Luebbe <jluebbe@debian.org>
> ---
>  drivers/i2c/i2c.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied, thanks

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2015-07-09  8:20 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-07-08 13:31 [PATCH 1/2] i2c: only register enabled child nodes Jan Luebbe
2015-07-08 13:31 ` [PATCH 2/2] spi: " Jan Luebbe
2015-07-09  8:19 ` [PATCH 1/2] i2c: " Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox