* [PATCH 1/1] atmel_spi: fix multiple instance support
@ 2012-11-04 18:42 Jean-Christophe PLAGNIOL-VILLARD
0 siblings, 0 replies; only message in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2012-11-04 18:42 UTC (permalink / raw)
To: barebox
use device id as bus num
Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
drivers/spi/atmel_spi.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/spi/atmel_spi.c b/drivers/spi/atmel_spi.c
index 4256572..353a24a 100644
--- a/drivers/spi/atmel_spi.c
+++ b/drivers/spi/atmel_spi.c
@@ -286,6 +286,7 @@ static int atmel_spi_probe(struct device_d *dev)
master = &as->master;
master->dev = dev;
+ master->bus_num = dev->id;
as->clk = clk_get(dev, "spi_clk");
if (IS_ERR(as->clk)) {
--
1.7.10.4
_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2012-11-04 18:44 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-11-04 18:42 [PATCH 1/1] atmel_spi: fix multiple instance support Jean-Christophe PLAGNIOL-VILLARD
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox