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:
Benjamin Walsh 2016-01-28 15:16:31 -05:00 committed by Anas Nashif
commit a4ec963138
21 changed files with 26 additions and 69 deletions

View file

@ -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 */