ASoC: apple: mca: Adjust timing of component unregister
authorMartin Povišer <povik+lin@cutebit.org>
Tue, 27 Sep 2022 11:34:26 +0000 (13:34 +0200)
committerMark Brown <broonie@kernel.org>
Tue, 27 Sep 2022 12:59:59 +0000 (13:59 +0100)
commitdb6ae79a7e4f729457ec42db5d6d0fbe0e35784c
tree96784a4102f913dbb497ae23afb2996283d59428
parente92e50e4263f5cf9c731ef5593c31f94dc3b7b8c
ASoC: apple: mca: Adjust timing of component unregister

On removal of the driver, the ASoC component should be unregistered
first, before we start releasing any of the other resources.

Fixes: 3df5d0d97289 ("ASoC: apple: mca: Start new platform driver")
Signed-off-by: Martin Povišer <povik+lin@cutebit.org>
Link: https://lore.kernel.org/r/20220927113426.49724-3-povik+lin@cutebit.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/apple/mca.c