From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:6f8:1178:4:290:27ff:fe1d:cc33]) by canuck.infradead.org with esmtps (Exim 4.76 #1 (Red Hat Linux)) id 1Qssof-00069M-MU for barebox@lists.infradead.org; Mon, 15 Aug 2011 08:46:38 +0000 From: Sascha Hauer Date: Mon, 15 Aug 2011 10:46:31 +0200 Message-Id: <1313397992-3065-7-git-send-email-s.hauer@pengutronix.de> In-Reply-To: <1313397992-3065-1-git-send-email-s.hauer@pengutronix.de> References: <1313397992-3065-1-git-send-email-s.hauer@pengutronix.de> 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-bounces@lists.infradead.org Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 6/7] spi: make the spi devices children of the parent bus To: barebox@lists.infradead.org Signed-off-by: Sascha Hauer --- drivers/spi/spi.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff --git a/drivers/spi/spi.c b/drivers/spi/spi.c index 8058694..b561f9d 100644 --- a/drivers/spi/spi.c +++ b/drivers/spi/spi.c @@ -79,6 +79,7 @@ struct spi_device *spi_new_device(struct spi_master *master, proxy->dev.platform_data = chip->platform_data; strcpy(proxy->dev.name, chip->name); proxy->dev.type_data = proxy; + dev_add_child(master->dev, &proxy->dev); status = register_device(&proxy->dev); /* drivers may modify this initial i/o setup */ -- 1.7.5.4 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox