]> git.baikalelectronics.ru Git - kernel.git/commit
ARM: imx51: use platform id 2 for imx51-cspi
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Mon, 6 Dec 2010 09:03:18 +0000 (10:03 +0100)
committerSascha Hauer <s.hauer@pengutronix.de>
Thu, 19 May 2011 11:11:24 +0000 (13:11 +0200)
commitdc3c27fa36b2939e5c493b0488d992783e080499
tree72816bc0e04a7b5844d1448c44993a6a43d21ccd
parent254604d9a18710ba076c5fcc5bead5cefcaa6174
ARM: imx51: use platform id 2 for imx51-cspi

The platform id is used to determine the spi bus number, so it should
better be different to the ids used for imx51-ecspi.  Otherwise it's not
possible to use both devices "imx51-cspi.0" and "imx51-ecspi.0".

Alternative approaches are to use dynamic bus numbering as offered by
the spi framework or let the machine code set the bus number.  The
downside of both possibilities is that the bus number isn't fixed for
the same busses on different machines using i.MX51.

LAKML-Reference: 1302100716-21034-1-git-send-email-u.kleine-koenig@pengutronix.de
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
arch/arm/plat-mxc/devices/platform-spi_imx.c