]> www.infradead.org Git - users/jedix/linux-maple.git/commitdiff
pinctrl: STMFX: add missing HAS_IOMEM dependency
authorRandy Dunlap <rdunlap@infradead.org>
Fri, 15 Aug 2025 02:27:21 +0000 (19:27 -0700)
committerLinus Walleij <linus.walleij@linaro.org>
Fri, 22 Aug 2025 06:34:30 +0000 (08:34 +0200)
When building on ARCH=um (which does not set HAS_IOMEM), kconfig
reports an unmet dependency caused by PINCTRL_STMFX. It selects
MFD_STMFX, which depends on HAS_IOMEM. To stop this warning,
PINCTRL_STMFX should also depend on HAS_IOMEM.

kconfig warning:
WARNING: unmet direct dependencies detected for MFD_STMFX
  Depends on [n]: HAS_IOMEM [=n] && I2C [=y] && OF [=y]
  Selected by [y]:
  - PINCTRL_STMFX [=y] && PINCTRL [=y] && I2C [=y] && OF_GPIO [=y]

Fixes: 1490d9f841b1 ("pinctrl: Add STMFX GPIO expander Pinctrl/GPIO driver")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Link: https://lore.kernel.org/20250815022721.1650885-1-rdunlap@infradead.org
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/Kconfig

index ddd11668457ceded9861438768f89945f2307e31..be1ca8e85754bcae9b2248f36fc7dc3c47fc98e4 100644 (file)
@@ -539,6 +539,7 @@ config PINCTRL_STMFX
        tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
        depends on I2C
        depends on OF_GPIO
+       depends on HAS_IOMEM
        select GENERIC_PINCONF
        select GPIOLIB_IRQCHIP
        select MFD_STMFX