]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
pinctrl: PINCTRL_STMFX should depend on CONFIG_OF
authorTimur Tabi <ttabi@nvidia.com>
Tue, 2 Jun 2026 21:11:16 +0000 (16:11 -0500)
committerLinus Walleij <linusw@kernel.org>
Mon, 8 Jun 2026 22:48:12 +0000 (00:48 +0200)
Commit e785c990adcc ("pinctrl: Kconfig: drop unneeded dependencies
on OF_GPIO") removed a redundant dependecy on CONFIG_OF_GPIO for
several pinctrl drivers, but this change also removed a dependency
on CONFIG_OF for some of those drivers.

Normally, this wouldn't be a problem, but PINCTRL_STMFX also selected
MFD_STMFX, which does depend on CONFIG_OF.  This conflict allows
MFD_STMFX to be enabled even if CONFIG_OF is disabled.

Fix this by also having PINCTRL_STMFX depend on CONFIG_OF.  This is
okay because the pinctrl-stmfx driver actually does depend on CONFIG_OF
functions.

Fixes: e785c990adcc ("pinctrl: Kconfig: drop unneeded dependencies on OF_GPIO")
Signed-off-by: Timur Tabi <ttabi@nvidia.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
drivers/pinctrl/Kconfig

index de1554809eec2e99a096138cc34e4dfaae35bd70..3624cfe4f2a2e411dd064702026cbfa47abe3ccd 100644 (file)
@@ -558,6 +558,7 @@ config PINCTRL_ST
 
 config PINCTRL_STMFX
        tristate "STMicroelectronics STMFX GPIO expander pinctrl driver"
+       depends on OF
        depends on I2C
        depends on HAS_IOMEM
        select GENERIC_PINCONF