drivers: Fix type problems when building QMSI rtc driver

In order to avoid type conflicts make sure that ISR_HANDLED
is defined. This makes the ISR the correct type.
Make sure that the pointer for the unused argument for ISR
is of the proper type (NULL).

Change-Id: Ia1873f32d2e2174085f929e318a780a1b2574785
Signed-off-by: Dmitriy Korovkin <dmitriy.korovkin@windriver.com>
This commit is contained in:
Dmitriy Korovkin 2016-10-14 11:48:11 -04:00 committed by Anas Nashif
commit 792140a502
2 changed files with 3 additions and 1 deletions

View file

@ -1 +1,2 @@
obj-$(CONFIG_RTC_QMSI) += rtc_qmsi.o obj-$(CONFIG_RTC_QMSI) += rtc_qmsi.o
ccflags-$(CONFIG_RTC_QMSI) += -DENABLE_EXTERNAL_ISR_HANDLING

View file

@ -166,7 +166,8 @@ static int rtc_qmsi_init(struct device *dev)
{ {
rtc_reentrancy_init(dev); rtc_reentrancy_init(dev);
IRQ_CONNECT(QM_IRQ_RTC_0, CONFIG_RTC_0_IRQ_PRI, qm_rtc_isr_0, 0, IRQ_CONNECT(QM_IRQ_RTC_0, CONFIG_RTC_0_IRQ_PRI,
qm_rtc_isr_0, NULL,
IOAPIC_EDGE | IOAPIC_HIGH); IOAPIC_EDGE | IOAPIC_HIGH);
/* Unmask RTC interrupt */ /* Unmask RTC interrupt */