2
0

860-v6.7-07-ASoC-mediatek-mt7986-drop-the-remove-callback-of-mt7.patch 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. From f3f0934e5c7b9c16e0cb2435be3555382e6293ad Mon Sep 17 00:00:00 2001
  2. From: Maso Huang <[email protected]>
  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. Drop the remove callback of mt7986_wm8960.
  7. Signed-off-by: Maso Huang <[email protected]>
  8. Reviewed-by: AngeloGioacchino Del Regno <[email protected]>
  9. Link: https://lore.kernel.org/r/[email protected]
  10. Signed-off-by: Mark Brown <[email protected]>
  11. ---
  12. sound/soc/mediatek/mt7986/mt7986-wm8960.c | 10 ----------
  13. 1 file changed, 10 deletions(-)
  14. --- a/sound/soc/mediatek/mt7986/mt7986-wm8960.c
  15. +++ b/sound/soc/mediatek/mt7986/mt7986-wm8960.c
  16. @@ -163,15 +163,6 @@ err_of_node_put:
  17. return ret;
  18. }
  19. -static void mt7986_wm8960_machine_remove(struct platform_device *pdev)
  20. -{
  21. - struct snd_soc_card *card = platform_get_drvdata(pdev);
  22. - struct mt7986_wm8960_priv *priv = snd_soc_card_get_drvdata(card);
  23. -
  24. - of_node_put(priv->codec_node);
  25. - of_node_put(priv->platform_node);
  26. -}
  27. -
  28. static const struct of_device_id mt7986_wm8960_machine_dt_match[] = {
  29. {.compatible = "mediatek,mt7986-wm8960-sound"},
  30. { /* sentinel */ }
  31. @@ -184,7 +175,6 @@ static struct platform_driver mt7986_wm8
  32. .of_match_table = mt7986_wm8960_machine_dt_match,
  33. },
  34. .probe = mt7986_wm8960_machine_probe,
  35. - .remove_new = mt7986_wm8960_machine_remove,
  36. };
  37. module_platform_driver(mt7986_wm8960_machine);