Skip to contentSkip to conversation

ASoC: sti_uniperif: Ensure component is unregistered when unload module

PATCH In review Axel Lin 2 participants 2 messages Aug 29, 2015 – Aug 30, 2015

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: sti_uniperif: Ensure component is unregistered when unload module

Use devm_snd_soc_register_component to ensure component is unregistered when unload the module.

---
 sound/soc/sti/sti_uniperif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/sti/sti_uniperif.c +3 -3
index dffabf3..39bcefe 100644
@@ -224,9 +224,9 @@ static int sti_uniperiph_probe(struct platform_device *pdev)
 
 	dev_set_drvdata(&pdev->dev, priv);
 
-	ret = snd_soc_register_component(&pdev->dev,
-					 &sti_uniperiph_dai_component,
-					 priv->dai, 1);
+	ret = devm_snd_soc_register_component(&pdev->dev,
+					      &sti_uniperiph_dai_component,
+					      priv->dai, 1);
 	if (ret < 0)
 		return ret;
 
Signature · 1 line
2.1.0
maintainer
#1 lore raw

Applied "ASoC: sti_uniperif: Ensure component is unregistered when unload module" to the asoc tree

The patch

ASoC: sti_uniperif: Ensure component is unregistered when unload module

has been applied to the asoc tree at

git://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 e12909107c30efccf570ac67802df5d2eec4cabd Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Sat, 29 Aug 2015 23:06:32 +0800
Subject: [PATCH] ASoC: sti_uniperif: Ensure component is unregistered when
unload module

Use devm_snd_soc_register_component to ensure component is unregistered when unload the module.

---
 sound/soc/sti/sti_uniperif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/sti/sti_uniperif.c +3 -3
index dffabf3..39bcefe 100644
@@ -224,9 +224,9 @@ static int sti_uniperiph_probe(struct platform_device *pdev)
 
 	dev_set_drvdata(&pdev->dev, priv);
 
-	ret = snd_soc_register_component(&pdev->dev,
-					 &sti_uniperiph_dai_component,
-					 priv->dai, 1);
+	ret = devm_snd_soc_register_component(&pdev->dev,
+					      &sti_uniperiph_dai_component,
+					      priv->dai, 1);
 	if (ret < 0)
 		return ret;
 
Signature · 1 line
2.5.0