rtc: s5m: select REGMAP_I2C
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 14 Jan 2021 10:22:17 +0000 (11:22 +0100)
committerAlexandre Belloni <alexandre.belloni@bootlin.com>
Sat, 16 Jan 2021 22:19:12 +0000 (23:19 +0100)
The rtc-s5m uses the I2C regmap but doesn't select it in Kconfig so
depending on the configuration the build may fail. Fix it.

Fixes: 959df7778bbd ("rtc: Enable compile testing for Maxim and Samsung drivers")
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
Reviewed-by: Krzysztof Kozlowski <krzk@kernel.org>
Signed-off-by: Alexandre Belloni <alexandre.belloni@bootlin.com>
Link: https://lore.kernel.org/r/20210114102219.23682-2-brgl@bgdev.pl
drivers/rtc/Kconfig

index 3b5510c9bffa640233c6effee3befb5aa9534cf0..fe4fdb75a4c5a02abd229394c6b9a8d858702012 100644 (file)
@@ -692,6 +692,7 @@ config RTC_DRV_S5M
        tristate "Samsung S2M/S5M series"
        depends on MFD_SEC_CORE || COMPILE_TEST
        select REGMAP_IRQ
+       select REGMAP_I2C
        help
          If you say yes here you will get support for the
          RTC of Samsung S2MPS14 and S5M PMIC series.