[PATCH 6/7] spi: make the spi devices children of the parent bus
Sascha Hauer
s.hauer at pengutronix.de
Mon Aug 15 04:46:31 EDT 2011
Signed-off-by: Sascha Hauer <s.hauer at pengutronix.de>
---
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
More information about the barebox
mailing list