All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: sti_uniperif: Ensure component is unregistered when unload module
@ 2015-08-29 15:06 Axel Lin
  2015-08-30 11:26 ` Applied "ASoC: sti_uniperif: Ensure component is unregistered when unload module" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2015-08-29 15:06 UTC (permalink / raw)
  To: Mark Brown; +Cc: alsa-devel, Arnaud Pouliquen, Liam Girdwood

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

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/sti/sti_uniperif.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c
index dffabf3..39bcefe 100644
--- a/sound/soc/sti/sti_uniperif.c
+++ b/sound/soc/sti/sti_uniperif.c
@@ -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;
 
-- 
2.1.0

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2015-08-30 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-08-29 15:06 [PATCH] ASoC: sti_uniperif: Ensure component is unregistered when unload module Axel Lin
2015-08-30 11:26 ` Applied "ASoC: sti_uniperif: Ensure component is unregistered when unload module" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.