From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from proxima.lasnet.de ([2a01:198:210:70::2]) by bombadil.infradead.org with esmtps (Exim 4.80.1 #2 (Red Hat Linux)) id 1ZCpRn-0000zO-CB for barebox@lists.infradead.org; Wed, 08 Jul 2015 13:31:36 +0000 Received: from polaris.guest.pengutronix.de (hazel.nat.pengutronix.de [85.220.165.66]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: polaris@lasnet.de) by proxima.lasnet.de (Postfix) with ESMTPSA id B4A82C2B07 for ; Wed, 8 Jul 2015 15:31:13 +0200 (CEST) From: Jan Luebbe Date: Wed, 8 Jul 2015 15:31:03 +0200 Message-Id: <1436362263-25076-2-git-send-email-jluebbe@debian.org> In-Reply-To: <1436362263-25076-1-git-send-email-jluebbe@debian.org> References: <1436362263-25076-1-git-send-email-jluebbe@debian.org> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 2/2] spi: only register enabled child nodes To: barebox@lists.infradead.org Signed-off-by: Jan Luebbe --- 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