From 8316a3013f2402457dc2ab012f0b7e0833e43faf Mon Sep 17 00:00:00 2001 From: Rosen Penev Date: Sat, 26 Apr 2025 15:42:11 -0700 Subject: [PATCH] ramips: mt7621-i2c: use remove_new Easy compability fix for kernel 6.12. Signed-off-by: Rosen Penev Link: https://github.com/openwrt/openwrt/pull/18660 Signed-off-by: Christian Marangi --- .../ramips/patches-6.6/835-asoc-add-mt7620-support.patch | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/target/linux/ramips/patches-6.6/835-asoc-add-mt7620-support.patch b/target/linux/ramips/patches-6.6/835-asoc-add-mt7620-support.patch index 4a7ad8f6fad..f8378fdf717 100644 --- a/target/linux/ramips/patches-6.6/835-asoc-add-mt7620-support.patch +++ b/target/linux/ramips/patches-6.6/835-asoc-add-mt7620-support.patch @@ -59,7 +59,7 @@ Signed-off-by: John Crispin +obj-$(CONFIG_SND_RALINK_SOC_I2S) += snd-soc-ralink-i2s.o --- /dev/null +++ b/sound/soc/ralink/ralink-i2s.c -@@ -0,0 +1,941 @@ +@@ -0,0 +1,939 @@ +/* + * Copyright (C) 2010, Lars-Peter Clausen + * Copyright (C) 2016 Michael Lee @@ -978,18 +978,16 @@ Signed-off-by: John Crispin + return ralink_i2s_debugfs_create(i2s); +} + -+static int ralink_i2s_remove(struct platform_device *pdev) ++static void ralink_i2s_remove(struct platform_device *pdev) +{ + struct ralink_i2s *i2s = platform_get_drvdata(pdev); + + ralink_i2s_debugfs_remove(i2s); -+ -+ return 0; +} + +static struct platform_driver ralink_i2s_driver = { + .probe = ralink_i2s_probe, -+ .remove = ralink_i2s_remove, ++ .remove_new = ralink_i2s_remove, + .driver = { + .name = DRV_NAME, + .of_match_table = ralink_i2s_match_table,