ASoC: mediatek: mt7986: drop the remove callback of mt7986_wm8960
authorMaso Huang <maso.huang@mediatek.com>
Tue, 24 Oct 2023 03:50:17 +0000 (11:50 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 24 Oct 2023 12:26:47 +0000 (13:26 +0100)
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>
sound/soc/mediatek/mt7986/mt7986-wm8960.c

index 364d13b1c426b29370a85d440b6c2405e375eceb..f6b9794b72299dd18cc4b36fa15117327160142b 100644 (file)
@@ -163,15 +163,6 @@ err_of_node_put:
        return ret;
 }
 
-static void mt7986_wm8960_machine_remove(struct platform_device *pdev)
-{
-       struct snd_soc_card *card = platform_get_drvdata(pdev);
-       struct mt7986_wm8960_priv *priv = snd_soc_card_get_drvdata(card);
-
-       of_node_put(priv->codec_node);
-       of_node_put(priv->platform_node);
-}
-
 static const struct of_device_id mt7986_wm8960_machine_dt_match[] = {
        {.compatible = "mediatek,mt7986-wm8960-sound"},
        { /* sentinel */ }
@@ -184,7 +175,6 @@ static struct platform_driver mt7986_wm8960_machine = {
                .of_match_table = mt7986_wm8960_machine_dt_match,
        },
        .probe = mt7986_wm8960_machine_probe,
-       .remove_new = mt7986_wm8960_machine_remove,
 };
 
 module_platform_driver(mt7986_wm8960_machine);