summaryrefslogtreecommitdiffstats
path: root/drivers/spi/spi-dw-mmio.c
diff options
context:
space:
mode:
authorBaruch Siach <baruch@tkos.co.il>2014-01-26 10:14:32 +0200
committerMark Brown <broonie@linaro.org>2014-02-03 12:19:59 +0000
commit2418991efb7b1f9fc574771450ac17689682b3f6 (patch)
tree5a25c0b3b497d9c0fba9db124b4e203388444d00 /drivers/spi/spi-dw-mmio.c
parent38dbfb59d1175ef458d006556061adeaa8751b72 (diff)
spi: dw-mmio: allow multiple instances
Use the platform_device id to uniquely identify each SPI master instance. Cc: Jean-Hugues Deschenes <jean-hugues.deschenes@octasic.com> Signed-off-by: Baruch Siach <baruch@tkos.co.il> Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'drivers/spi/spi-dw-mmio.c')
-rw-r--r--drivers/spi/spi-dw-mmio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c
index 9af56cdf154..1492f5ee9aa 100644
--- a/drivers/spi/spi-dw-mmio.c
+++ b/drivers/spi/spi-dw-mmio.c
@@ -66,7 +66,7 @@ static int dw_spi_mmio_probe(struct platform_device *pdev)
if (ret)
return ret;
- dws->bus_num = 0;
+ dws->bus_num = pdev->id;
dws->num_cs = 4;
dws->max_freq = clk_get_rate(dwsmmio->clk);