Skip to contentSkip to conversation

pinctrl: s32cc: fix unmet dependency for PINCTRL_S32CC

PATCH In review Julian Braha 2 participants 2 messages Jul 22 – Jul 25

Subsystems (4)
lore
Share & tools
lore
#0 lore raw

PATCH v2 1/1 pinctrl: s32cc: fix unmet dependency for PINCTRL_S32CC

Currently, PINCTRL_S32G2 selects PINCTRL_S32CC which needs GPIOLIB, without selecting or depending on GPIOLIB.

However, other similar options in this subsystem actually select GPIOLIB instead of depending, so I think we can do the same here.

This unmet dependency was found by kconfirm, a static analysis tool for Kconfig.

Fixes 94cb9e8f2707 ("pinctrl: s32cc: implement GPIO functionality")

---
v2: fix typo in commit message PINCTRL_S32CC -> PINCTRL_S32G2 Link to v1:
https://lore.kernel.org/all/[email protected]/

---
 drivers/pinctrl/nxp/Kconfig | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
drivers/pinctrl/nxp/Kconfig +2 -1
index 711c0fe11565..fab725f250ab 100644
@@ -1,10 +1,11 @@
 # SPDX-License-Identifier: GPL-2.0-only
 config PINCTRL_S32CC
 	bool
-	depends on ARCH_S32 && OF && GPIOLIB
+	depends on ARCH_S32 && OF
 	select GENERIC_PINCTRL_GROUPS
 	select GENERIC_PINMUX_FUNCTIONS
 	select GENERIC_PINCONF
+	select GPIOLIB
 	select GPIO_REGMAP
 	select REGMAP_MMIO
 
Signature · 1 line
2.54.0
maintainer
#1 lore raw
Quoted 11 lines · Julian Braha

Currently, PINCTRL_S32G2 selects PINCTRL_S32CC which needs GPIOLIB, without selecting or depending on GPIOLIB.

However, other similar options in this subsystem actually select GPIOLIB instead of depending, so I think we can do the same here.

This unmet dependency was found by kconfirm, a static analysis tool for Kconfig.

Fixes 94cb9e8f2707 ("pinctrl: s32cc: implement GPIO functionality")

Patch applied!

Yours,
Linus Walleij