mail archive of the barebox mailing list
 help / color / mirror / Atom feed
From: Jan Luebbe <jluebbe@debian.org>
To: barebox@lists.infradead.org
Subject: [PATCH 2/2] spi: only register enabled child nodes
Date: Wed,  8 Jul 2015 15:31:03 +0200	[thread overview]
Message-ID: <1436362263-25076-2-git-send-email-jluebbe@debian.org> (raw)
In-Reply-To: <1436362263-25076-1-git-send-email-jluebbe@debian.org>

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

  reply	other threads:[~2015-07-08 13:31 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-07-08 13:31 [PATCH 1/2] i2c: " Jan Luebbe
2015-07-08 13:31 ` Jan Luebbe [this message]
2015-07-09  8:19 ` 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=1436362263-25076-2-git-send-email-jluebbe@debian.org \
    --to=jluebbe@debian.org \
    --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