diff options
author | YueHaibing <yuehaibing@huawei.com> | 2019-07-04 16:55:42 +0800 |
---|---|---|
committer | Alexandre Belloni <alexandre.belloni@bootlin.com> | 2019-07-13 21:31:37 +0200 |
commit | f2f5cb6a73b9f056ae3f8e6b4c61f57d6f3ab1ec (patch) | |
tree | 369de38c51269694d3bccad519de1d2d44c248c5 /drivers/rtc/Kconfig | |
parent | 3126790d1fd3f0dff11240c1bdb04a6f020a5a03 (diff) |
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@huawei.com>
Fixes: 790d033933b8 ("rtc: pcf2123: port to regmap")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190704085542.48180-1-yuehaibing@huawei.com
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Diffstat (limited to 'drivers/rtc/Kconfig')
-rw-r--r-- | drivers/rtc/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/rtc/Kconfig b/drivers/rtc/Kconfig index 03b60d5c2330..75e0a22a2fa2 100644 --- a/drivers/rtc/Kconfig +++ b/drivers/rtc/Kconfig @@ -811,6 +811,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. |