diff options
author | Vikram Pandita <vikram.pandita@ti.com> | 2009-05-28 14:03:59 -0700 |
---|---|---|
committer | Tony Lindgren <tony@atomide.com> | 2009-05-28 14:03:59 -0700 |
commit | 2aa57be2d9e400f498cf0f0636069a81035e06b9 (patch) | |
tree | 8b7a8127686c13a3226a48b9f73280b949d0fb06 /arch/arm/mach-omap2 | |
parent | f247de346f67db1e252e4ed6c29d029a6e592398 (diff) | |
download | linux-3.10-2aa57be2d9e400f498cf0f0636069a81035e06b9.tar.gz linux-3.10-2aa57be2d9e400f498cf0f0636069a81035e06b9.tar.bz2 linux-3.10-2aa57be2d9e400f498cf0f0636069a81035e06b9.zip |
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/arm/mach-omap2')
-rw-r--r-- | arch/arm/mach-omap2/serial.c | 22 |
1 files changed, 9 insertions, 13 deletions
diff --git a/arch/arm/mach-omap2/serial.c b/arch/arm/mach-omap2/serial.c index 4dcf39c285b..3c2d325d3dc 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) } } +static struct platform_device serial_device = { + .name = "serial8250", + .id = PLAT8250_DEV_PLATFORM, + .dev = { + .platform_data = serial_platform_data, + }, +}; + void __init omap_serial_init(void) { int i; @@ -142,18 +150,6 @@ void __init omap_serial_init(void) omap_serial_reset(p); } -} -static struct platform_device serial_device = { - .name = "serial8250", - .id = PLAT8250_DEV_PLATFORM, - .dev = { - .platform_data = serial_platform_data, - }, -}; - -static int __init omap_init(void) -{ - return platform_device_register(&serial_device); + platform_device_register(&serial_device); } -arch_initcall(omap_init); |