projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
36cc093
)
ASoC: sti_uniperif: Ensure component is unregistered when unload module
author
Axel Lin
<axel.lin@ingics.com>
Sat, 29 Aug 2015 15:06:32 +0000
(23:06 +0800)
committer
Mark Brown
<broonie@kernel.org>
Sun, 30 Aug 2015 11:16:55 +0000
(12:16 +0100)
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>
sound/soc/sti/sti_uniperif.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/sti/sti_uniperif.c
b/sound/soc/sti/sti_uniperif.c
index dffabf3ba9fbc30be71c7dcfc7488df056ab23db..39bcefe5eea0c329910f31671575c11f8385092d 100644
(file)
--- 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;