diff options
author | Baruch Siach <baruch@tkos.co.il> | 2014-01-26 09:14:32 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-02-03 13:19:59 +0100 |
commit | 2418991efb7b1f9fc574771450ac17689682b3f6 (patch) | |
tree | 5a25c0b3b497d9c0fba9db124b4e203388444d00 /drivers/spi/spi-dw-mmio.c | |
parent | Linus 3.14-rc1 (diff) | |
download | linux-2418991efb7b1f9fc574771450ac17689682b3f6.tar.xz linux-2418991efb7b1f9fc574771450ac17689682b3f6.zip |
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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-dw-mmio.c b/drivers/spi/spi-dw-mmio.c index 9af56cdf1540..1492f5ee9aaa 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); |