diff options
| author | Timur Tabi <ttabi@nvidia.com> | 2026-06-02 16:11:16 -0500 |
|---|---|---|
| committer | Linus Walleij <linusw@kernel.org> | 2026-06-09 00:48:12 +0200 |
| commit | fd9490bdd4536a8e0911578f62164176b9000552 (patch) | |
| tree | a495cccbc0da53d2da1b9796f4ba986483f71c42 /drivers/pinctrl | |
| parent | 388d2fe16283d68e4be8c5317809a4a218ebeace (diff) | |
| download | linux-next-fd9490bdd4536a8e0911578f62164176b9000552.tar.gz linux-next-fd9490bdd4536a8e0911578f62164176b9000552.zip | |
pinctrl: PINCTRL_STMFX should depend on CONFIG_OF
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>
Diffstat (limited to 'drivers/pinctrl')
| -rw-r--r-- | drivers/pinctrl/Kconfig | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/pinctrl/Kconfig b/drivers/pinctrl/Kconfig index de1554809eec..3624cfe4f2a2 100644 --- a/drivers/pinctrl/Kconfig +++ b/drivers/pinctrl/Kconfig @@ -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 |
