Commit 04d3ba70 authored by Arnd Bergmann's avatar Arnd Bergmann Committed by Alexandre Belloni

rtc: mt6397: add IRQ domain dependency

The mt6397 RTC driver can be built either when the MFD_MT6397 driver
is enabled (which selects IRQ_DOMAIN), or when compile testing.
The latter however fails without IRQ domains:

drivers/rtc/rtc-mt6397.c: In function 'mtk_rtc_probe':
drivers/rtc/rtc-mt6397.c:326:13: error: implicit declaration of function 'irq_create_mapping' [-Werror=implicit-function-declaration]
  rtc->irq = irq_create_mapping(mt6397_chip->irq_domain, res->start);

This adds an explicit dependency for the COMPILE_TEST case.
Signed-off-by: default avatarArnd Bergmann <arnd@arndb.de>
Acked-by: default avatarEddie Huang <eddie.huang@mediatek.com>
Signed-off-by: default avatarAlexandre Belloni <alexandre.belloni@free-electrons.com>
parent aaa3cee5
...@@ -1593,7 +1593,7 @@ config RTC_DRV_MOXART ...@@ -1593,7 +1593,7 @@ config RTC_DRV_MOXART
config RTC_DRV_MT6397 config RTC_DRV_MT6397
tristate "Mediatek Real Time Clock driver" tristate "Mediatek Real Time Clock driver"
depends on MFD_MT6397 || COMPILE_TEST depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN)
help help
This selects the Mediatek(R) RTC driver. RTC is part of Mediatek This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
MT6397 PMIC. You should enable MT6397 PMIC MFD before select MT6397 PMIC. You should enable MT6397 PMIC MFD before select
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment