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:
parent
dc76dbf2ef
commit
792140a502
2 changed files with 3 additions and 1 deletions
|
@ -1 +1,2 @@
|
|||
obj-$(CONFIG_RTC_QMSI) += rtc_qmsi.o
|
||||
ccflags-$(CONFIG_RTC_QMSI) += -DENABLE_EXTERNAL_ISR_HANDLING
|
||||
|
|
|
@ -166,7 +166,8 @@ static int rtc_qmsi_init(struct device *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);
|
||||
|
||||
/* Unmask RTC interrupt */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue