Commit 81484487 authored by Kuninori Morimoto's avatar Kuninori Morimoto Committed by Simon Horman

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: default avatarKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Acked-by: default avatarMagnus Damm <damm@opensource.se>
Signed-off-by: default avatarSimon Horman <horms+renesas@verge.net.au>
parent 8585deb1
...@@ -78,21 +78,13 @@ static struct sh_timer_config sh_tmu1_platform_data = { ...@@ -78,21 +78,13 @@ static struct sh_timer_config sh_tmu1_platform_data = {
.clocksource_rating = 200, .clocksource_rating = 200,
}; };
#define PLATFORM_INFO(n, i) \ #define r8a7778_register_tmu(idx) \
{ \ platform_device_register_resndata( \
.parent = &platform_bus, \ &platform_bus, "sh_tmu", idx, \
.name = #n, \ sh_tmu##idx##_resources, \
.id = i, \ ARRAY_SIZE(sh_tmu##idx##_resources), \
.res = n ## i ## _resources, \ &sh_tmu##idx##_platform_data, \
.num_res = ARRAY_SIZE(n ## i ##_resources), \ sizeof(sh_tmu##idx##_platform_data))
.data = &n ## i ##_platform_data, \
.size_data = sizeof(n ## i ## _platform_data), \
}
struct platform_device_info platform_devinfo[] = {
PLATFORM_INFO(sh_tmu, 0),
PLATFORM_INFO(sh_tmu, 1),
};
void __init r8a7778_add_standard_devices(void) void __init r8a7778_add_standard_devices(void)
{ {
...@@ -114,8 +106,8 @@ void __init r8a7778_add_standard_devices(void) ...@@ -114,8 +106,8 @@ void __init r8a7778_add_standard_devices(void)
&scif_platform_data[i], &scif_platform_data[i],
sizeof(struct plat_sci_port)); sizeof(struct plat_sci_port));
for (i = 0; i < ARRAY_SIZE(platform_devinfo); i++) r8a7778_register_tmu(0);
platform_device_register_full(&platform_devinfo[i]); r8a7778_register_tmu(1);
} }
#define INT2SMSKCR0 0x82288 /* 0xfe782288 */ #define INT2SMSKCR0 0x82288 /* 0xfe782288 */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment