summaryrefslogtreecommitdiffstats
path: root/sound/soc/soc-utils.c
diff options
context:
space:
mode:
authorFabio Estevam <fabio.estevam@nxp.com>2018-06-26 13:58:35 +0200
committerMark Brown <broonie@kernel.org>2018-06-26 16:25:46 +0200
commitb66c9b911fe6ca188002b342b05c43deab4491a3 (patch)
tree7d598f0345b353680b54e21a70301a6a54170a4e /sound/soc/soc-utils.c
parentASoC: arizona: Set compressed IRQ to a wake source (diff)
downloadlinux-b66c9b911fe6ca188002b342b05c43deab4491a3.tar.xz
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>
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);
}