Skip to content

Commit

Permalink
ARM: OMAP2/3: Serial: Remove arch_initcall dependency
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Vikram Pandita authored and Tony Lindgren committed May 28, 2009
1 parent f247de3 commit 2aa57be
Showing 1 changed file with 9 additions and 13 deletions.
22 changes: 9 additions & 13 deletions arch/arm/mach-omap2/serial.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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);

0 comments on commit 2aa57be

Please sign in to comment.