summaryrefslogtreecommitdiffstats
path: root/sound/soc/sti
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-08-29 23:06:32 +0800
committerMark Brown <broonie@kernel.org>2015-08-30 12:16:55 +0100
commite12909107c30efccf570ac67802df5d2eec4cabd (patch)
treeb7c696ea544c279344bd4760f3b5d2f38d656150 /sound/soc/sti
parent36cc093520b9a6348292c253d3ec03bb67a84da8 (diff)
downloadblackbird-obmc-linux-e12909107c30efccf570ac67802df5d2eec4cabd.tar.gz
blackbird-obmc-linux-e12909107c30efccf570ac67802df5d2eec4cabd.zip
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. Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sti')
-rw-r--r--sound/soc/sti/sti_uniperif.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sound/soc/sti/sti_uniperif.c b/sound/soc/sti/sti_uniperif.c
index dffabf3ba9fb..39bcefe5eea0 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;
OpenPOWER on IntegriCloud