[openwrt/openwrt] gpio-nct5104d: fix compilation with kernel 6.6
LEDE Commits
lede-commits at lists.infradead.org
Mon May 13 01:15:21 PDT 2024
robimarko pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/4f87a4d84f3d6d1625962413ea56cca1ce83db7c
commit 4f87a4d84f3d6d1625962413ea56cca1ce83db7c
Author: Rosen Penev <rosenp at gmail.com>
AuthorDate: Sun May 12 14:38:59 2024 -0700
gpio-nct5104d: fix compilation with kernel 6.6
gpio.h has been deprecated for a while and no longer compiles with 6.6.
Include the proper header.
Signed-off-by: Rosen Penev <rosenp at gmail.com>
Link: https://github.com/openwrt/openwrt/pull/15471
Signed-off-by: Robert Marko <robimarko at gmail.com>
---
package/kernel/gpio-nct5104d/src/gpio-nct5104d.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
index 5343d6e3a8..eb1cf8494a 100644
--- a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
+++ b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
@@ -13,7 +13,7 @@
#include <linux/init.h>
#include <linux/platform_device.h>
#include <linux/io.h>
-#include <linux/gpio.h>
+#include <linux/gpio/driver.h>
#include <linux/version.h>
#include <linux/dmi.h>
#include <linux/string.h>
More information about the lede-commits
mailing list