device: use DEVICE_INIT everwhere

This is the last step before obsoleting DEVICE_DEFINE() and
DEVICE_INIT_CONFIG_DEFINE().

Change-Id: Ica4257662969048083ab9839872b4b437b8b351b
Signed-off-by: Benjamin Walsh <benjamin.walsh@windriver.com>
This commit is contained in:
Benjamin Walsh 2016-01-28 14:48:47 -05:00 committed by Anas Nashif
commit d340d4cb3f
57 changed files with 270 additions and 415 deletions

View file

@ -71,9 +71,9 @@ static int uart_k20_console_init(struct device *dev)
return DEV_OK;
}
DEVICE_INIT_CONFIG_DEFINE(_uart_k20_console, "", uart_k20_console_init, NULL);
DEVICE_DEFINE(_uart_k20_console, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_INIT(_uart_k20_console, "", uart_k20_console_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif
#endif /* CONFIG_UART_CONSOLE */
@ -117,8 +117,8 @@ static int uart_k20_init(struct device *dev)
return DEV_OK;
}
DEVICE_INIT_CONFIG_DEFINE(_uart_k20_init, "", uart_k20_init, NULL);
DEVICE_DEFINE(_uart_k20_init, NULL, PRIMARY,
CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
DEVICE_INIT(_uart_k20_init, "", uart_k20_init,
NULL, NULL,
PRIMARY, CONFIG_KERNEL_INIT_PRIORITY_DEFAULT);
#endif /* CONFIG_UART_K20 */