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
|
@ -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 */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue