aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--drivers/spi/spi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c
index 84c2861d6f4d..d3e64080c409 100644
--- a/drivers/spi/spi.c
+++ b/drivers/spi/spi.c
@@ -819,7 +819,7 @@ static void of_register_spi_devices(struct spi_master *master)
819 if (!master->dev.of_node) 819 if (!master->dev.of_node)
820 return; 820 return;
821 821
822 for_each_child_of_node(master->dev.of_node, nc) { 822 for_each_available_child_of_node(master->dev.of_node, nc) {
823 /* Alloc an spi_device */ 823 /* Alloc an spi_device */
824 spi = spi_alloc_device(master); 824 spi = spi_alloc_device(master);
825 if (!spi) { 825 if (!spi) {