Signed-off-by: Jan Luebbe <jlue...@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 via email to