ASoC: mediatek: fix use-after-free in driver remove

Merge series from Trevor Wu <trevor.wu@mediatek.com>:

These patches concern modifications made in mt8186[1]. The clock
unregistration mechanism used in mt8188 and mt8195 is similar with
mt8186, resulting in the same problem existing within the driver.
Therefore, the solution has also been applied to these two platforms.

[1] https://lore.kernel.org/all/20230511092437.1.I31cceffc8c45bb1af16eb613e197b3df92cdc19e@changeid/
This commit is contained in:
Mark Brown 2023-06-01 16:43:38 +01:00
commit ce78930710
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
10 changed files with 48 additions and 70 deletions