[openwrt/openwrt] lantiq: lantiq-flash: platform driver .remove_new conversion
LEDE Commits
lede-commits at lists.infradead.org
Fri Jul 18 04:31:43 PDT 2025
dangole pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/9208ba286d8ea924231fac8f2aa73f7e0587cafe
commit 9208ba286d8ea924231fac8f2aa73f7e0587cafe
Author: Shiji Yang <yangshiji66 at outlook.com>
AuthorDate: Thu May 8 23:19:14 2025 +0800
lantiq: lantiq-flash: platform driver .remove_new conversion
The .remove has been converted to .remove_new in the 6.12 kernel.
We have to change remove function return type from int to void
to match the upstream changes.
Link: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?h=linux-6.12.y&id=5882bf98089f3a9ecbee5a57ae0aec6f54797855
Signed-off-by: Shiji Yang <yangshiji66 at outlook.com>
---
.../patches-6.12/160-owrt-lantiq-multiple-flash.patch | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/target/linux/lantiq/patches-6.12/160-owrt-lantiq-multiple-flash.patch b/target/linux/lantiq/patches-6.12/160-owrt-lantiq-multiple-flash.patch
index 0f427df867..0e386b34a8 100644
--- a/target/linux/lantiq/patches-6.12/160-owrt-lantiq-multiple-flash.patch
+++ b/target/linux/lantiq/patches-6.12/160-owrt-lantiq-multiple-flash.patch
@@ -40,17 +40,17 @@ Signed-off-by: Maikel Bloemendal <openwrt at maikelenyvonne.nl>
static map_word
ltq_read16(struct map_info *map, unsigned long adr)
-@@ -106,11 +110,43 @@ ltq_copy_to(struct map_info *map, unsign
+@@ -105,12 +109,41 @@ ltq_copy_to(struct map_info *map, unsign
+ spin_unlock_irqrestore(&ebu_lock, flags);
}
- static int
-+ltq_mtd_remove(struct platform_device *pdev)
++static void ltq_mtd_remove(struct platform_device *pdev)
+{
+ struct ltq_mtd *ltq_mtd = platform_get_drvdata(pdev);
+ int i;
+
+ if (ltq_mtd == NULL)
-+ return 0;
++ return;
+
+ if (ltq_mtd->cmtd) {
+ mtd_device_unregister(ltq_mtd->cmtd);
@@ -64,11 +64,9 @@ Signed-off-by: Maikel Bloemendal <openwrt at maikelenyvonne.nl>
+ }
+
+ kfree(ltq_mtd);
-+
-+ return 0;
+}
+
-+static int
+ static int
ltq_mtd_probe(struct platform_device *pdev)
{
struct ltq_mtd *ltq_mtd;
@@ -85,7 +83,7 @@ Signed-off-by: Maikel Bloemendal <openwrt at maikelenyvonne.nl>
ltq_mtd = devm_kzalloc(&pdev->dev, sizeof(struct ltq_mtd), GFP_KERNEL);
if (!ltq_mtd)
-@@ -118,68 +154,89 @@ ltq_mtd_probe(struct platform_device *pd
+@@ -118,68 +151,89 @@ ltq_mtd_probe(struct platform_device *pd
platform_set_drvdata(pdev, ltq_mtd);
More information about the lede-commits
mailing list