Skip to content

Commit 3e92ea2

Browse files
Maso Huangbroonie
authored andcommitted
ASoC: mediatek: mt7986: drop the remove callback of mt7986_wm8960
Drop the remove callback of mt7986_wm8960. Signed-off-by: Maso Huang <maso.huang@mediatek.com> Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com> Link: https://lore.kernel.org/r/20231024035019.11732-2-maso.huang@mediatek.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 4fc4db7 commit 3e92ea2

1 file changed

Lines changed: 0 additions & 10 deletions

File tree

sound/soc/mediatek/mt7986/mt7986-wm8960.c

Lines changed: 0 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -163,15 +163,6 @@ static int mt7986_wm8960_machine_probe(struct platform_device *pdev)
163163
return ret;
164164
}
165165

166-
static void mt7986_wm8960_machine_remove(struct platform_device *pdev)
167-
{
168-
struct snd_soc_card *card = platform_get_drvdata(pdev);
169-
struct mt7986_wm8960_priv *priv = snd_soc_card_get_drvdata(card);
170-
171-
of_node_put(priv->codec_node);
172-
of_node_put(priv->platform_node);
173-
}
174-
175166
static const struct of_device_id mt7986_wm8960_machine_dt_match[] = {
176167
{.compatible = "mediatek,mt7986-wm8960-sound"},
177168
{ /* sentinel */ }
@@ -184,7 +175,6 @@ static struct platform_driver mt7986_wm8960_machine = {
184175
.of_match_table = mt7986_wm8960_machine_dt_match,
185176
},
186177
.probe = mt7986_wm8960_machine_probe,
187-
.remove_new = mt7986_wm8960_machine_remove,
188178
};
189179

190180
module_platform_driver(mt7986_wm8960_machine);

0 commit comments

Comments
 (0)