ASoC: soc-utils: Fix unregistration order
authorFabio Estevam <fabio.estevam@nxp.com>
Tue, 26 Jun 2018 11:58:35 +0000 (08:58 -0300)
committerMark Brown <broonie@kernel.org>
Tue, 26 Jun 2018 14:25:46 +0000 (15:25 +0100)
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>
sound/soc/soc-utils.c

index 2d9e98bd15301b30676d6c804f319aabe5e9f910..a863bb3f66c21ad8af277cbd6613ea6521a1e702 100644 (file)
@@ -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);
 }