Skip to contentSkip to conversation

ASoC: soc-utils: Fix unregistration order

PATCH In review Fabio Estevam 2 participants 2 messages Jun 26, 2018

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: soc-utils: Fix unregistration order

From: Fabio Estevam <[email protected]>

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.

---
 sound/soc/soc-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-utils.c +1 -1
index 2d9e98b..a863bb3 100644
@@ -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);
 }
Signature · 1 line
2.7.4
maintainer
#1 lore raw

Applied "ASoC: soc-utils: Fix unregistration order" to the asoc tree

The patch

ASoC: soc-utils: Fix unregistration order

has been applied to the asoc tree at

https://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From b66c9b911fe6ca188002b342b05c43deab4491a3 Mon Sep 17 00:00:00 2001

From: Fabio Estevam <[email protected]>
Date: Tue, 26 Jun 2018 08:58:35 -0300
Subject: [PATCH] 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.

---
 sound/soc/soc-utils.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/soc-utils.c +1 -1
index 2d9e98bd1530..a863bb3f66c2 100644
@@ -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);
 }
Signature · 1 line
2.17.1