[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <1453784080.15263.2.camel@mtksdaap41>
Date: Tue, 26 Jan 2016 12:54:40 +0800
From: Eddie Huang <eddie.huang@...iatek.com>
To: Arnd Bergmann <arnd@...db.de>
CC: Alexandre Belloni <alexandre.belloni@...e-electrons.com>,
<linux-arm-kernel@...ts.infradead.org>,
Wei-Ning Huang <wnhuang@...omium.org>,
Tianping Fang <tianping.fang@...iatek.com>,
"Henry Chen" <henryc.chen@...iatek.com>,
Alessandro Zummo <a.zummo@...ertech.it>,
<rtc-linux@...glegroups.com>, <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH] rtc: mt6397: add IRQ domain dependency
On Mon, 2016-01-25 at 17:04 +0100, Arnd Bergmann wrote:
> 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@...db.de>
> ---
> drivers/rtc/Kconfig | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
> index 376322f71fd5..4395608bf7fc 100644
> --- a/drivers/rtc/Kconfig
> +++ b/drivers/rtc/Kconfig
> @@ -1603,7 +1603,7 @@ config RTC_DRV_MOXART
>
> config RTC_DRV_MT6397
> tristate "Mediatek Real Time Clock driver"
> - depends on MFD_MT6397 || COMPILE_TEST
> + depends on MFD_MT6397 || (COMPILE_TEST && IRQ_DOMAIN)
> help
> This selects the Mediatek(R) RTC driver. RTC is part of Mediatek
> MT6397 PMIC. You should enable MT6397 PMIC MFD before select
Hi Arnd,
Thanks your correction.
Acked-by: Eddie Huang <eddie.huang@...iatek.com>
Regards,
Eddie
Powered by blists - more mailing lists