[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-ID: <20190704085542.48180-1-yuehaibing@huawei.com>
Date: Thu, 4 Jul 2019 16:55:42 +0800
From: YueHaibing <yuehaibing@...wei.com>
To: <a.zummo@...ertech.it>, <alexandre.belloni@...tlin.com>,
<Dylan.Howey@...nantco.com>, <ravi23ganiga@...il.com>
CC: <linux-kernel@...r.kernel.org>, <linux-rtc@...r.kernel.org>,
YueHaibing <yuehaibing@...wei.com>
Subject: [PATCH] rtc: pcf2123: Fix build error
If REGMAP_SPI is m and RTC_DRV_PCF2123 is y,
drivers/rtc/rtc-pcf2123.o: In function `pcf2123_probe':
rtc-pcf2123.c:(.text+0xb2b): undefined reference to `__devm_regmap_init_spi'
Select REGMAP_SPI as RTC_DRV_DS1347 driver does.
Reported-by: Hulk Robot <hulkci@...wei.com>
Fixes: 790d033933b8 ("rtc: pcf2123: port to regmap")
Signed-off-by: YueHaibing <yuehaibing@...wei.com>
---
drivers/rtc/Kconfig | 1 +
1 file changed, 1 insertion(+)
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig
index 3bfc04a..e72f65b 100644
--- a/drivers/rtc/Kconfig
+++ b/drivers/rtc/Kconfig
@@ -820,6 +820,7 @@ config RTC_DRV_MAX6902
config RTC_DRV_PCF2123
tristate "NXP PCF2123"
+ select REGMAP_SPI
help
If you say yes here you get support for the NXP PCF2123
RTC chip.
--
2.7.4
Powered by blists - more mailing lists