[openwrt/openwrt] ltq-adsl-mei: convert driver to .remove_new
LEDE Commits
lede-commits at lists.infradead.org
Fri Apr 11 02:21:51 PDT 2025
ansuel pushed a commit to openwrt/openwrt.git, branch main:
https://git.openwrt.org/bd532bd48eca2e37b2afb130e83eb15fb2b330e8
commit bd532bd48eca2e37b2afb130e83eb15fb2b330e8
Author: Christian Marangi <ansuelsmth at gmail.com>
AuthorDate: Thu Apr 10 21:32:19 2025 +0200
ltq-adsl-mei: convert driver to .remove_new
Convert driver to .remove_new in preparation for kernel 6.12 support.
Link: https://github.com/openwrt/openwrt/pull/18454
Signed-off-by: Christian Marangi <ansuelsmth at gmail.com>
---
package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c | 5 ++---
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c b/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
index 20a63716a3..8c976565a0 100644
--- a/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
+++ b/package/kernel/lantiq/ltq-adsl-mei/src/drv_mei_cpe.c
@@ -2780,7 +2780,7 @@ static int ltq_mei_probe(struct platform_device *pdev)
return 0;
}
-static int ltq_mei_remove(struct platform_device *pdev)
+static void ltq_mei_remove(struct platform_device *pdev)
{
int i = 0;
int num;
@@ -2794,7 +2794,6 @@ static int ltq_mei_remove(struct platform_device *pdev)
IFX_MEI_ExitDevice (i);
}
}
- return 0;
}
static const struct of_device_id ltq_mei_match[] = {
@@ -2804,7 +2803,7 @@ static const struct of_device_id ltq_mei_match[] = {
static struct platform_driver ltq_mei_driver = {
.probe = ltq_mei_probe,
- .remove = ltq_mei_remove,
+ .remove_new = ltq_mei_remove,
.driver = {
.name = "lantiq,mei-xway",
.of_match_table = ltq_mei_match,
More information about the lede-commits
mailing list