Skip to contentSkip to conversation

Applied "ASoC: txx9: use devm_snd_soc_register_component()" to the asoc tree

PATCH Mark Brown 1 participant 1 message Sep 11, 2018

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

The patch

ASoC: txx9: use devm_snd_soc_register_component()

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 fb77436a444e9836e6b1b0a457bc9c09cdce22f6 Mon Sep 17 00:00:00 2001

From: Kuninori Morimoto <[email protected]>
Date: Fri, 7 Sep 2018 01:03:53 +0000
Subject: [PATCH] ASoC: txx9: use devm_snd_soc_register_component()

Now we have devm_snd_soc_register_component(). Let's use it instead of snd_soc_register_component().

---
 sound/soc/txx9/txx9aclc-ac97.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/txx9/txx9aclc-ac97.c +1 -2
index e2ad00e3cae1..1cfca698ae4b 100644
@@ -208,13 +208,12 @@ static int txx9aclc_ac97_dev_probe(struct platform_device *pdev)
 	if (err < 0)
 		return err;
 
-	return snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component,
+	return devm_snd_soc_register_component(&pdev->dev, &txx9aclc_ac97_component,
 					  &txx9aclc_ac97_dai, 1);
 }
 
 static int txx9aclc_ac97_dev_remove(struct platform_device *pdev)
 {
-	snd_soc_unregister_component(&pdev->dev);
 	snd_soc_set_ac97_ops(NULL);
 	return 0;
 }
Signature · 1 line
2.19.0.rc2