From 80edacc8a697b5aaacf3a26d462c1fd9e1d5a639 Mon Sep 17 00:00:00 2001
From: Florian Eckert <fe@dev.tdt.de>
Date: Wed, 26 Jan 2022 16:12:12 +0100
Subject: [PATCH] target/mxs: replace gpio-mcp23s08 with pinctrl-mcp23s08

The dependency on the kernel module gpio-mcp23s08 is replaced by
pinctrl-mcp23s08-spi and pinctrl-mcp23s08-i2c, as the gpio-mpc23s08 kernel
module no longer exists.

Signed-off-by: Florian Eckert <fe@dev.tdt.de>
---
 target/linux/mxs/profiles/02-olinuxino-maxi.mk  | 4 ++--
 target/linux/mxs/profiles/03-olinuxino-micro.mk | 3 ++-
 2 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/target/linux/mxs/profiles/02-olinuxino-maxi.mk b/target/linux/mxs/profiles/02-olinuxino-maxi.mk
index 662c9f2254..dd333629b8 100644
--- a/target/linux/mxs/profiles/02-olinuxino-maxi.mk
+++ b/target/linux/mxs/profiles/02-olinuxino-maxi.mk
@@ -5,8 +5,8 @@
 define Profile/olinuxino-maxi
   NAME:=Olimex OLinuXino Maxi/Mini boards
   PACKAGES += imx-bootlets uboot-mxs-mx23_olinuxino \
-	  kmod-usb-net-smsc95xx kmod-gpio-mcp23s08 \
-	  kmod-leds-gpio kmod-sound-core
+	  kmod-usb-net-smsc95xx kmod-pinctrl-mcp23s08-i2c \
+	  kmod-pinctrl-mcp23s08-spi kmod-leds-gpio kmod-sound-core
 endef
 
 define Profile/olinuxino-maxi/Description
diff --git a/target/linux/mxs/profiles/03-olinuxino-micro.mk b/target/linux/mxs/profiles/03-olinuxino-micro.mk
index 31a767188c..8413ebbdca 100644
--- a/target/linux/mxs/profiles/03-olinuxino-micro.mk
+++ b/target/linux/mxs/profiles/03-olinuxino-micro.mk
@@ -5,7 +5,8 @@
 define Profile/olinuxino-micro
   NAME:=Olimex OLinuXino Micro/Nano boards
   PACKAGES += imx-bootlets uboot-mxs-mx23_olinuxino \
-	  kmod-gpio-mcp23s08 kmod-leds-gpio
+	  kmod-pinctrl-mcp23s08-spi kmod-pinctrl-mcp23s08-i2c \
+	  kmod-leds-gpio
 endef
 
 define Profile/olinuxino-micro/Description
-- 
2.30.2