1
0
Fork 0
mirror of https://github.com/Ysurac/openmptcprouter.git synced 2025-03-09 15:40:20 +00:00

Add alpha version for kernel 6.12 support

This commit is contained in:
Ycarus (Yannick Chabanois) 2024-11-06 10:17:15 +01:00
parent 2d47118221
commit 6e713f6367
281 changed files with 65491 additions and 0 deletions

View file

@ -0,0 +1,26 @@
diff --git a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
index eb1cf8494abe2..00dc4dcd9424f 100644
--- a/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
+++ b/package/kernel/gpio-nct5104d/src/gpio-nct5104d.c
@@ -300,7 +300,11 @@ static int nct5104d_gpio_probe(struct platform_device *pdev)
return err;
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
static int nct5104d_gpio_remove(struct platform_device *pdev)
+#else
+static void nct5104d_gpio_remove(struct platform_device *pdev)
+#endif
{
int i;
struct nct5104d_gpio_data *data = platform_get_drvdata(pdev);
@@ -311,7 +315,9 @@ static int nct5104d_gpio_remove(struct platform_device *pdev)
gpiochip_remove (&bank->chip);
}
+#if LINUX_VERSION_CODE < KERNEL_VERSION(6,11,0)
return 0;
+#endif
}
static int __init nct5104d_find(int addr, struct nct5104d_sio *sio)