ARM: SAMSUNG: Add naming of s3c64xx-spi devices
authorHeiko Stuebner <heiko@sntech.de>
Wed, 17 Oct 2012 07:47:11 +0000 (16:47 +0900)
committerKukjin Kim <kgene.kim@samsung.com>
Wed, 17 Oct 2012 07:47:32 +0000 (16:47 +0900)
commit308b3afb97dc342e9c4f958d8b4c459ae0e22bd7
treee369cf2f77f8b5bdbe8085e71459cfb4943e6916
parentddffeb8c4d0331609ef2581d84de4d763607bd37
ARM: SAMSUNG: Add naming of s3c64xx-spi devices

Commit a5238e360b71 (spi: s3c64xx: move controller information into driver
data) introduced separate device names for the different subtypes of the
spi controller but forgot to set these in the relevant machines.

To fix this introduce a s3c64xx_spi_setname function and populate all
Samsung arches with the correct names. The function resides in a new
header, as the s3c64xx-spi.h contains driver platform data and should
therefore at some later point move out of the Samsung include dir.

Tested on a s3c2416-based machine.

Signed-off-by: Heiko Stuebner <heiko@sntech.de>
Cc: Stable <stable@vger.kernel.org>
Reviewed-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
[s.nawrocki@samsung.com: tested on mach-exynos]
Tested-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kukjin Kim <kgene.kim@samsung.com>
arch/arm/mach-exynos/common.c
arch/arm/mach-s3c24xx/s3c2416.c
arch/arm/mach-s3c24xx/s3c2443.c
arch/arm/mach-s5p64x0/common.c
arch/arm/mach-s5pc100/common.c
arch/arm/mach-s5pv210/common.c
arch/arm/plat-samsung/include/plat/spi-core.h [new file with mode: 0644]