]> git.ipfire.org Git - thirdparty/openwrt.git/commitdiff
kernel: kmod-pinctrl-mcp23s08: Depend on PINCTRL
authorHauke Mehrtens <hauke@hauke-m.de>
Sun, 20 Jul 2025 19:48:36 +0000 (21:48 +0200)
committerHauke Mehrtens <hauke@hauke-m.de>
Fri, 25 Jul 2025 23:11:20 +0000 (01:11 +0200)
The kernel driver configuration depends on PINCTRL.
Show this driver only on targets supporting pinctrl.

Link: https://github.com/openwrt/openwrt/pull/19480
Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
package/kernel/linux/modules/other.mk

index 42c7ab06e878eec33d57adfe47440ff88e84ace2..91ace8d42821c2a81c0a5877c458dc94de0eafda 100644 (file)
@@ -220,7 +220,7 @@ define KernelPackage/pinctrl-mcp23s08
   SUBMENU:=$(OTHER_MENU)
   TITLE:=Microchip MCP23xxx I/O expander
   HIDDEN:=1
-  DEPENDS:=@GPIO_SUPPORT +kmod-regmap-core
+  DEPENDS:=@GPIO_SUPPORT @PINCTRL_SUPPORT +kmod-regmap-core
   KCONFIG:=CONFIG_PINCTRL_MCP23S08
   FILES:=$(LINUX_DIR)/drivers/pinctrl/pinctrl-mcp23s08.ko
   AUTOLOAD:=$(call AutoLoad,40,pinctrl-mcp23s08)