Commit 77df4755 authored by John Lenz's avatar John Lenz Committed by Russell King

[ARM PATCH] 1958/1: make collie use INIT_MACHINE

Patch from John Lenz

make collie use the new INIT_MACHINE macro instead of arch_initcall.
parent 354b4eee
...@@ -89,7 +89,7 @@ static struct platform_device *devices[] __initdata = { ...@@ -89,7 +89,7 @@ static struct platform_device *devices[] __initdata = {
&locomo_device, &locomo_device,
}; };
static int __init collie_init(void) static void __init collie_init(void)
{ {
int ret = 0; int ret = 0;
...@@ -120,14 +120,9 @@ static int __init collie_init(void) ...@@ -120,14 +120,9 @@ static int __init collie_init(void)
ret = platform_add_devices(devices, ARRAY_SIZE(devices)); ret = platform_add_devices(devices, ARRAY_SIZE(devices));
if (ret) { if (ret) {
printk(KERN_WARNING "collie: Unable to register LoCoMo device\n"); printk(KERN_WARNING "collie: Unable to register LoCoMo device\n");
return ret;
} }
return ret;
} }
arch_initcall(collie_init);
static struct map_desc collie_io_desc[] __initdata = { static struct map_desc collie_io_desc[] __initdata = {
/* virtual physical length type */ /* virtual physical length type */
{0xe8000000, 0x00000000, 0x02000000, MT_DEVICE}, /* 32M main flash (cs0) */ {0xe8000000, 0x00000000, 0x02000000, MT_DEVICE}, /* 32M main flash (cs0) */
...@@ -145,4 +140,5 @@ MACHINE_START(COLLIE, "Sharp-Collie") ...@@ -145,4 +140,5 @@ MACHINE_START(COLLIE, "Sharp-Collie")
BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000) BOOT_MEM(0xc0000000, 0x80000000, 0xf8000000)
MAPIO(collie_map_io) MAPIO(collie_map_io)
INITIRQ(sa1100_init_irq) INITIRQ(sa1100_init_irq)
INIT_MACHINE(collie_init)
MACHINE_END MACHINE_END
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