Skip to content

Commit

Permalink
spi: dw-mmio: allow multiple instances
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Baruch Siach authored and Mark Brown committed Feb 3, 2014
1 parent 38dbfb5 commit 2418991
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-dw-mmio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 2418991

Please sign in to comment.