projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
38dbfb5
)
spi: dw-mmio: allow multiple instances
author
Baruch Siach
<baruch@tkos.co.il>
Sun, 26 Jan 2014 08:14:32 +0000
(10:14 +0200)
committer
Mark Brown
<broonie@linaro.org>
Mon, 3 Feb 2014 12:19:59 +0000
(12:19 +0000)
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>
drivers/spi/spi-dw-mmio.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/spi/spi-dw-mmio.c
b/drivers/spi/spi-dw-mmio.c
index 9af56cdf1540551d595409efc47533cf45c5e5c5..1492f5ee9aaad702b1f6c490be4d38c1ac6091a0 100644
(file)
--- 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);