aboutsummaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-shmobile/setup-r8a7778.c
diff options
context:
space:
mode:
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>2013-04-02 00:19:17 -0400
committerSimon Horman <horms+renesas@verge.net.au>2013-04-04 02:37:12 -0400
commit814844871cb0ce6663579099ecb7fc80925df68c (patch)
tree39585899b00493f122373e5e23982b3f415dfb5c /arch/arm/mach-shmobile/setup-r8a7778.c
parent8585deb18580d04209a2986430aa0959ef38fce2 (diff)
ARM: shmobile: r8a7778: remove pointless PLATFORM_INFO()
remove pointless PLATFORM_INFO() macro from setup-r8a7778, and, used original platform_device_register_xxx() Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com> Acked-by: Magnus Damm <damm@opensource.se> 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.c26
1 files changed, 9 insertions, 17 deletions
diff --git a/arch/arm/mach-shmobile/setup-r8a7778.c b/arch/arm/mach-shmobile/setup-r8a7778.c
index 01c62bedf9cf..57d6b0eba445 100644
--- a/arch/arm/mach-shmobile/setup-r8a7778.c
+++ b/arch/arm/mach-shmobile/setup-r8a7778.c
@@ -78,21 +78,13 @@ static struct sh_timer_config sh_tmu1_platform_data = {
78 .clocksource_rating = 200, 78 .clocksource_rating = 200,
79}; 79};
80 80
81#define PLATFORM_INFO(n, i) \ 81#define r8a7778_register_tmu(idx) \
82{ \ 82 platform_device_register_resndata( \
83 .parent = &platform_bus, \ 83 &platform_bus, "sh_tmu", idx, \
84 .name = #n, \ 84 sh_tmu##idx##_resources, \
85 .id = i, \ 85 ARRAY_SIZE(sh_tmu##idx##_resources), \
86 .res = n ## i ## _resources, \ 86 &sh_tmu##idx##_platform_data, \
87 .num_res = ARRAY_SIZE(n ## i ##_resources), \ 87 sizeof(sh_tmu##idx##_platform_data))
88 .data = &n ## i ##_platform_data, \
89 .size_data = sizeof(n ## i ## _platform_data), \
90}
91
92struct platform_device_info platform_devinfo[] = {
93 PLATFORM_INFO(sh_tmu, 0),
94 PLATFORM_INFO(sh_tmu, 1),
95};
96 88
97void __init r8a7778_add_standard_devices(void) 89void __init r8a7778_add_standard_devices(void)
98{ 90{
@@ -114,8 +106,8 @@ void __init r8a7778_add_standard_devices(void)
114 &scif_platform_data[i], 106 &scif_platform_data[i],
115 sizeof(struct plat_sci_port)); 107 sizeof(struct plat_sci_port));
116 108
117 for (i = 0; i < ARRAY_SIZE(platform_devinfo); i++) 109 r8a7778_register_tmu(0);
118 platform_device_register_full(&platform_devinfo[i]); 110 r8a7778_register_tmu(1);
119} 111}
120 112
121#define INT2SMSKCR0 0x82288 /* 0xfe782288 */ 113#define INT2SMSKCR0 0x82288 /* 0xfe782288 */