From cd1981ea04c355e471be6af92a3045bee58ef10d Mon Sep 17 00:00:00 2001 From: Daniel Leung Date: Wed, 27 Apr 2016 15:33:34 -0700 Subject: [PATCH] rtc/qmsi: use new DEVICE_AND_API_INIT() Change-Id: Ic780b87e7f9372af970d24443d1a231a2f2c513f Signed-off-by: Daniel Leung --- drivers/rtc/rtc_qmsi.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/rtc/rtc_qmsi.c b/drivers/rtc/rtc_qmsi.c index 621b596133e..54920afd0a8 100644 --- a/drivers/rtc/rtc_qmsi.c +++ b/drivers/rtc/rtc_qmsi.c @@ -90,11 +90,11 @@ static int rtc_qmsi_init(struct device *dev) /* Route RTC interrupt to Lakemont */ QM_SCSS_INT->int_rtc_mask &= ~BIT(0); - dev->driver_api = &api; return 0; } -DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_qmsi_init, NULL, NULL, - SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE); +DEVICE_AND_API_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_qmsi_init, NULL, NULL, + SECONDARY, CONFIG_KERNEL_INIT_PRIORITY_DEVICE, + (void *)&api); static struct device *rtc_qmsi_dev = DEVICE_GET(rtc);