Commit 1baafe58 authored by Russell King's avatar Russell King

[ARM] Convert Integrator AP and Assabet to new machine init method

This makes use of David Brownell's INIT_MACHINE support.
parent 124e5ca6
...@@ -251,7 +251,7 @@ static struct platform_device cfi_flash_device = { ...@@ -251,7 +251,7 @@ static struct platform_device cfi_flash_device = {
.resource = &cfi_flash_resource, .resource = &cfi_flash_resource,
}; };
static int __init ap_init(void) static void __init ap_init(void)
{ {
unsigned long sc_dec; unsigned long sc_dec;
int i; int i;
...@@ -279,16 +279,13 @@ static int __init ap_init(void) ...@@ -279,16 +279,13 @@ static int __init ap_init(void)
lm_device_register(lmdev); lm_device_register(lmdev);
} }
return 0;
} }
arch_initcall(ap_init);
MACHINE_START(INTEGRATOR, "ARM-Integrator") MACHINE_START(INTEGRATOR, "ARM-Integrator")
MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd") MAINTAINER("ARM Ltd/Deep Blue Solutions Ltd")
BOOT_MEM(0x00000000, 0x16000000, 0xf1600000) BOOT_MEM(0x00000000, 0x16000000, 0xf1600000)
BOOT_PARAMS(0x00000100) BOOT_PARAMS(0x00000100)
MAPIO(ap_map_io) MAPIO(ap_map_io)
INITIRQ(ap_init_irq) INITIRQ(ap_init_irq)
INIT_MACHINE(ap_init)
MACHINE_END MACHINE_END
...@@ -92,11 +92,8 @@ static void assabet_lcd_power(int on) ...@@ -92,11 +92,8 @@ static void assabet_lcd_power(int on)
ASSABET_BCR_clear(ASSABET_BCR_LCD_ON); ASSABET_BCR_clear(ASSABET_BCR_LCD_ON);
} }
static int __init assabet_init(void) static void __init assabet_init(void)
{ {
if (!machine_is_assabet())
return -EINVAL;
/* /*
* Ensure that the power supply is in "high power" mode. * Ensure that the power supply is in "high power" mode.
*/ */
...@@ -139,13 +136,8 @@ static int __init assabet_init(void) ...@@ -139,13 +136,8 @@ static int __init assabet_init(void)
"hasn't been configured in the kernel\n" ); "hasn't been configured in the kernel\n" );
#endif #endif
} }
return 0;
} }
arch_initcall(assabet_init);
/* /*
* On Assabet, we must probe for the Neponset board _before_ * On Assabet, we must probe for the Neponset board _before_
* paging_init() has occurred to actually determine the amount * paging_init() has occurred to actually determine the amount
...@@ -332,4 +324,5 @@ MACHINE_START(ASSABET, "Intel-Assabet") ...@@ -332,4 +324,5 @@ MACHINE_START(ASSABET, "Intel-Assabet")
FIXUP(fixup_assabet) FIXUP(fixup_assabet)
MAPIO(assabet_map_io) MAPIO(assabet_map_io)
INITIRQ(sa1100_init_irq) INITIRQ(sa1100_init_irq)
INIT_MACHINE(assabet_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