]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
rtc: max8907: add missing select REGMAP_IRQ
authorCorentin Labbe <clabbe@baylibre.com>
Wed, 18 Mar 2020 15:26:49 +0000 (15:26 +0000)
committerLinus Torvalds <torvalds@linux-foundation.org>
Thu, 19 Mar 2020 16:55:25 +0000 (09:55 -0700)
I have hit the following build error:

  armv7a-hardfloat-linux-gnueabi-ld: drivers/rtc/rtc-max8907.o: in function `max8907_rtc_probe':
  rtc-max8907.c:(.text+0x400): undefined reference to `regmap_irq_get_virq'

max8907 should select REGMAP_IRQ

Fixes: 94c01ab6d7544 ("rtc: add MAX8907 RTC driver")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Corentin Labbe <clabbe@baylibre.com>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
drivers/rtc/Kconfig

index 34c8b6c7e0954ef9a49a6f693900896cf7621101..8e503881d9d6ab629d56516379914a824a6f33e4 100644 (file)
@@ -327,6 +327,7 @@ config RTC_DRV_MAX6900
 config RTC_DRV_MAX8907
        tristate "Maxim MAX8907"
        depends on MFD_MAX8907 || COMPILE_TEST
+       select REGMAP_IRQ
        help
          If you say yes here you will get support for the
          RTC of Maxim MAX8907 PMIC.