aboutsummaryrefslogtreecommitdiffstats
path: root/arch
diff options
context:
space:
mode:
authorVikram Pandita <vikram.pandita@ti.com>2009-05-28 17:03:59 -0400
committerTony Lindgren <tony@atomide.com>2009-05-28 17:03:59 -0400
commit2aa57be2d9e400f498cf0f0636069a81035e06b9 (patch)
tree8b7a8127686c13a3226a48b9f73280b949d0fb06 /arch
parentf247de346f67db1e252e4ed6c29d029a6e592398 (diff)
ARM: OMAP2/3: Serial: Remove arch_initcall dependency
Move platform_device_register() for serial device to omap_serial_init() There is no need to have arch_initcall() dependency in serial as already board files call the function omap_serial_init() Signed-off-by: Vikram Pandita <vikram.pandita@ti.com> Signed-off-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'arch')
-rw-r--r--arch/arm/mach-omap2/serial.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c
index 4dcf39c285b9..3c2d325d3dca 100644
--- a/arch/arm/mach-omap2/serial.c
+++ b/arch/arm/mach-omap2/serial.c
@@ -98,6 +98,14 @@ void omap_serial_enable_clocks(int enable)
98 } 98 }
99} 99}
100 100
101static struct platform_device serial_device = {
102 .name = "serial8250",
103 .id = PLAT8250_DEV_PLATFORM,
104 .dev = {
105 .platform_data = serial_platform_data,
106 },
107};
108
101void __init omap_serial_init(void) 109void __init omap_serial_init(void)
102{ 110{
103 int i; 111 int i;
@@ -142,18 +150,6 @@ void __init omap_serial_init(void)
142 150
143 omap_serial_reset(p); 151 omap_serial_reset(p);
144 } 152 }
145}
146 153
147static struct platform_device serial_device = { 154 platform_device_register(&serial_device);
148 .name = "serial8250",
149 .id = PLAT8250_DEV_PLATFORM,
150 .dev = {
151 .platform_data = serial_platform_data,
152 },
153};
154
155static int __init omap_init(void)
156{
157 return platform_device_register(&serial_device);
158} 155}
159arch_initcall(omap_init);