By setting bus_num to 0 the resulting device is named "spi0". Otherwise
the name was "spi32766" (dynamic numbering) which was a bit confusing.
Using 0 is correct as this driver (and the MPC5200 SPI controller) only
supports one SPI bus.
Signed-off-by: Stefan Roese <redacted>
Cc: Anatolij Gustschin <redacted>
Cc: grant.likely-s3s/WqlpOiPyB63q8FvJNQ@public.gmane.org
---
drivers/spi/spi-mpc52xx.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/drivers/spi/spi-mpc52xx.c b/drivers/spi/spi-mpc52xx.c
index 0454106..b40370c 100644
--- a/drivers/spi/spi-mpc52xx.c
+++ b/drivers/spi/spi-mpc52xx.c
@@ -438,6 +438,9 @@ static int __devinit mpc52xx_spi_probe(struct platform_device *op)
master->mode_bits = SPI_CPOL | SPI_CPHA | SPI_LSB_FIRST;
master->dev.of_node = op->dev.of_node;
+ /* Only one SPI bus from this driver possible */
+ master->bus_num = 0;
+
dev_set_drvdata(&op->dev, master);
ms = spi_master_get_devdata(master);
--
1.8.0
------------------------------------------------------------------------------
Monitor your physical, virtual and cloud infrastructure from a single
web console. Get in-depth insight into apps, servers, databases, vmware,
SAP, cloud infrastructure, etc. Download 30-day Free Trial.
Pricing starts from $795 for 25 servers or applications!
http://p.sf.net/sfu/zoho_dev2dev_nov