[PATCH] imx_spi: fix bus-num setup

Hubert Feurstein h.feurstein at gmail.com
Thu Feb 21 04:20:38 EST 2013


Signed-off-by: Hubert Feurstein <h.feurstein at gmail.com>
---
 drivers/spi/imx_spi.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/spi/imx_spi.c b/drivers/spi/imx_spi.c
index 71fac3d..950180f 100644
--- a/drivers/spi/imx_spi.c
+++ b/drivers/spi/imx_spi.c
@@ -533,6 +533,7 @@ static int imx_spi_probe(struct device_d *dev)
 
 	master = &imx->master;
 	master->dev = dev;
+	master->bus_num = dev->id;
 
 	master->setup = imx_spi_setup;
 	master->transfer = imx_spi_transfer;
-- 
1.8.1.3




More information about the barebox mailing list