summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7778.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-07-30 09:02:24 +0200
committerSimon Horman <horms+renesas@verge.net.au>2013-08-06 11:07:09 +0200
commit3c7b5362323cd4b5d09a5b21ba8e74b3de05fc73 (patch)
tree4676c3750adae0d4379a75fd1441c35419929b96 /arch/arm/mach-shmobile/setup-r8a7778.c
parentARM: shmobile: r8a7778: cleanup registration of i2c (diff)
downloadlinux-3c7b5362323cd4b5d09a5b21ba8e74b3de05fc73.tar.xz
linux-3c7b5362323cd4b5d09a5b21ba8e74b3de05fc73.zip
ARM: shmobile: r8a7778: cleanup registration of hspi
sh-hspi driver which doesn't need platform data at the time of registration can be registerd on SoC. And, registering these drivers in the SoC code can avoid unwanted device numbering issue. (ex. the hspi2 device number will be spi.0 if hspi2 only registered) This patch registers it on SoC code as cleanup C code Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Signed-off-by: Simon Horman <horms+renesas@verge.net.au>
Diffstat (limited to 'arch/arm/mach-shmobile/setup-r8a7778.c')
-rw-r--r--arch/arm/mach-shmobile/setup-r8a7778.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index ce3b54dfcc44..1a154d4a4907 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -272,7 +272,7 @@ static struct resource hspi_resources[] __initdata = {
DEFINE_RES_IRQ(gic_iid(0x75)),
};
-void __init r8a7778_add_hspi_device(int id)
+void __init r8a7778_register_hspi(int id)
{
BUG_ON(id < 0 || id > 2);
@@ -312,6 +312,9 @@ void __init r8a7778_add_standard_devices(void)
r8a7778_register_i2c(1);
r8a7778_register_i2c(2);
r8a7778_register_i2c(3);
+ r8a7778_register_hspi(0);
+ r8a7778_register_hspi(1);
+ r8a7778_register_hspi(2);
}
void __init r8a7778_init_late(void)