init: use SYS_INIT() where it makes sense
Mostly SoC initialization and some kernel subsystems, but also some device drivers like the interrupt controllers. Change-Id: I8dc1844c33acd877c075b6b03558fdca6f87500b Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
parent
629e1dd861
commit
a4ec963138
21 changed files with 26 additions and 69 deletions
|
@ -194,6 +194,4 @@ static int atmel_sam3_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(atmel_sam3_0, "", atmel_sam3_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, 0);
|
||||
DEVICE_INIT(atmel_sam3_init, PRIMARY, 0);
|
||||
|
|
|
@ -320,6 +320,4 @@ static int fsl_frdm_k64f_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(fsl_frdm_0, "", fsl_frdm_k64f_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, 0);
|
||||
SYS_INIT(fsl_frdm_k64f_init, PRIMARY, 0);
|
||||
|
|
|
@ -71,9 +71,7 @@ static int uart_k20_console_init(struct device *dev)
|
|||
return DEV_OK;
|
||||
}
|
||||
|
||||
DEVICE_INIT(_uart_k20_console, "", uart_k20_console_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(uart_k20_console_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
||||
#endif
|
||||
#endif /* CONFIG_UART_CONSOLE */
|
||||
|
|
|
@ -56,6 +56,4 @@ static int ti_lm3s6965_init(struct device *arg)
|
|||
return 0;
|
||||
}
|
||||
|
||||
DEVICE_INIT(ti_lm3_0, "", ti_lm3s6965_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
SYS_INIT(ti_lm3s6965_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
|
||||
|
|
|
@ -51,8 +51,6 @@ static int uart_stellaris_init(struct device *dev)
|
|||
return DEV_OK;
|
||||
}
|
||||
|
||||
DEVICE_INIT(_uart_stellaris_en, "", uart_stellaris_init,
|
||||
NULL, NULL,
|
||||
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
SYS_INIT(uart_stellaris_init, PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
|
||||
|
||||
#endif /* CONFIG_UART_STELLARIS */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue