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:
parent
ef33dc32e5
commit
d340d4cb3f
57 changed files with 270 additions and 415 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue