413db8233f0517f38770fac0570e91a4f1c9dd27
[openwrt/staging/ansuel.git] /
1 From f3f0934e5c7b9c16e0cb2435be3555382e6293ad Mon Sep 17 00:00:00 2001
2 From: Maso Huang <maso.huang@mediatek.com>
3 Date: Tue, 24 Oct 2023 11:50:17 +0800
4 Subject: [PATCH 7/9] ASoC: mediatek: mt7986: drop the remove callback of
5 mt7986_wm8960
6
7 Drop the remove callback of mt7986_wm8960.
8
9 Signed-off-by: Maso Huang <maso.huang@mediatek.com>
10 Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
11 Link: https://lore.kernel.org/r/20231024035019.11732-2-maso.huang@mediatek.com
12 Signed-off-by: Mark Brown <broonie@kernel.org>
13 ---
14 sound/soc/mediatek/mt7986/mt7986-wm8960.c | 10 ----------
15 1 file changed, 10 deletions(-)
16
17 --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c
18 +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c
19 @@ -163,15 +163,6 @@ err_of_node_put:
20 return ret;
21 }
22
23 -static void mt7986_wm8960_machine_remove(struct platform_device *pdev)
24 -{
25 - struct snd_soc_card *card = platform_get_drvdata(pdev);
26 - struct mt7986_wm8960_priv *priv = snd_soc_card_get_drvdata(card);
27 -
28 - of_node_put(priv->codec_node);
29 - of_node_put(priv->platform_node);
30 -}
31 -
32 static const struct of_device_id mt7986_wm8960_machine_dt_match[] = {
33 {.compatible = "mediatek,mt7986-wm8960-sound"},
34 { /* sentinel */ }
35 @@ -184,7 +175,6 @@ static struct platform_driver mt7986_wm8
36 .of_match_table = mt7986_wm8960_machine_dt_match,
37 },
38 .probe = mt7986_wm8960_machine_probe,
39 - .remove_new = mt7986_wm8960_machine_remove,
40 };
41
42 module_platform_driver(mt7986_wm8960_machine);