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

@ -200,11 +200,9 @@ struct rtc_dw_dev_config rtc_dev = {
#endif
};
DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_dw_init, &rtc_dev);
DEVICE_DEFINE(rtc, &rtc_runtime, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_dw_init,
&rtc_runtime, &rtc_dev,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
int rtc_dw_init(struct device *dev)
{

View file

@ -92,10 +92,8 @@ static int rtc_qmsi_init(struct device *dev)
return DEV_OK;
}
DEVICE_INIT_CONFIG_DEFINE(rtc, CONFIG_RTC_DRV_NAME,
&rtc_qmsi_init, NULL);
DEVICE_DEFINE(rtc, NULL, SECONDARY,
CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_qmsi_init,
NULL, NULL,
SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE);
static struct device *rtc_qmsi_dev = DEVICE_GET(rtc);