]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
pinctrl: pic64gx-gpio2: Add REGMAP_MMIO dependency
authorSander Vanheule <sander@svanheule.net>
Fri, 19 Dec 2025 11:56:31 +0000 (12:56 +0100)
committerLinus Walleij <linusw@kernel.org>
Thu, 1 Jan 2026 14:33:27 +0000 (15:33 +0100)
In line with other drivers depending on REGMAP_*, select the required
symbol to prevent a linker error when building with COMPILE_TEST=y:

ld: drivers/pinctrl/pinctrl-pic64gx-gpio2.o: in function `pic64gx_gpio2_probe':
pinctrl-pic64gx-gpio2.c:315:(.text+0x198): undefined reference to `__devm_regmap_init_mmio_clk'

Fixes: 38cf9d641314 ("pinctrl: add pic64gx "gpio2" pinmux driver")
Signed-off-by: Sander Vanheule <sander@svanheule.net>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Kconfig

index bc7f37afc48bfa4c35b2eb7289f018febdc75482..7b9f792acb0e3ae9e98919cfb94f67a43a5aada0 100644 (file)
@@ -491,6 +491,7 @@ config PINCTRL_PIC64GX
        depends on ARCH_MICROCHIP || COMPILE_TEST
        depends on OF
        select GENERIC_PINCONF
+       select REGMAP_MMIO
        default y
        help
          This selects the pinctrl driver for gpio2 on pic64gx.