summaryrefslogtreecommitdiff
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-06-26 14:58:35 +0300
committerMark Brown <broonie@kernel.org>2018-06-26 17:25:46 +0300
commitb66c9b911fe6ca188002b342b05c43deab4491a3 (patch)
tree7d598f0345b353680b54e21a70301a6a54170a4e /sound/soc/soc-utils.c
parent1b31de922e28de2bf2078b7a1e341ad4aee6aa03 (diff)
downloadlinux-b66c9b911fe6ca188002b342b05c43deab4491a3.tar.xz
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>
Diffstat (limited to 'sound/soc/soc-utils.c')
-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);
}