summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-06-26 08:58:35 -0300
committerMark Brown <broonie@kernel.org>2018-06-26 15:25:46 +0100
commitb66c9b911fe6ca188002b342b05c43deab4491a3 (patch)
tree7d598f0345b353680b54e21a70301a6a54170a4e
parent1b31de922e28de2bf2078b7a1e341ad4aee6aa03 (diff)
downloadtalos-op-linux-b66c9b911fe6ca188002b342b05c43deab4491a3.tar.gz
talos-op-linux-b66c9b911fe6ca188002b342b05c43deab4491a3.zip
ASoC: soc-utils: Fix unregistration order
The unregistration should happen in the opposite order of the registration, so change it accordingly. No real issue has been noticed, but it is good practice to keep the correct unregistration order. Signed-off-by: Fabio Estevam <fabio.estevam@nxp.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/soc-utils.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/soc-utils.c b/sound/soc/soc-utils.c
index 2d9e98bd1530..a863bb3f66c2 100644
--- a/sound/soc/soc-utils.c
+++ b/sound/soc/soc-utils.c
@@ -381,6 +381,6 @@ int __init snd_soc_util_init(void)
void __exit snd_soc_util_exit(void)
{
- platform_device_unregister(soc_dummy_dev);
platform_driver_unregister(&soc_dummy_driver);
+ platform_device_unregister(soc_dummy_dev);
}
OpenPOWER on IntegriCloud