rtc: mt6397: add IRQ domain dependency
authorArnd Bergmann <arnd@arndb.de>
Mon, 25 Jan 2016 16:04:46 +0000 (17:04 +0100)
committerAlexandre Belloni <alexandre.belloni@free-electrons.com>
Thu, 4 Feb 2016 22:44:17 +0000 (23:44 +0100)
commit04d3ba70a3c9c9ba593d3208531463c65f055526
treec58a1bd88344e0b2776cc26c8d0ad981ed687f9e
parentaaa3cee5deffa28415a6e1852c5afae0f5d210e2
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: Arnd Bergmann <arnd@arndb.de>
Acked-by: Eddie Huang <eddie.huang@mediatek.com>
Signed-off-by: Alexandre Belloni <alexandre.belloni@free-electrons.com>
drivers/rtc/Kconfig