projects
/
deliverable
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
33c89c3
)
ASoC: omap-twl4030: Use devm_snd_soc_register_card
author
Sachin Kamat
<sachin.kamat@linaro.org>
Tue, 17 Sep 2013 04:23:59 +0000
(09:53 +0530)
committer
Mark Brown
<broonie@linaro.org>
Thu, 19 Sep 2013 13:57:37 +0000
(14:57 +0100)
devm_snd_soc_register_card makes code simpler.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@linaro.org>
sound/soc/omap/omap-twl4030.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/omap/omap-twl4030.c
b/sound/soc/omap/omap-twl4030.c
index 2a9324f794d8468172637ff07d28537a4a4cdd11..6a8d6b5f160debac623f79ad72b91dd5c77b1550 100644
(file)
--- a/
sound/soc/omap/omap-twl4030.c
+++ b/
sound/soc/omap/omap-twl4030.c
@@
-338,9
+338,9
@@
static int omap_twl4030_probe(struct platform_device *pdev)
}
snd_soc_card_set_drvdata(card, priv);
- ret =
snd_soc_register_card(
card);
+ ret =
devm_snd_soc_register_card(&pdev->dev,
card);
if (ret) {
- dev_err(&pdev->dev, "snd_soc_register_card() failed: %d\n",
+ dev_err(&pdev->dev, "
devm_
snd_soc_register_card() failed: %d\n",
ret);
return ret;
}
@@
-357,7
+357,6
@@
static int omap_twl4030_remove(struct platform_device *pdev)
snd_soc_jack_free_gpios(&priv->hs_jack,
ARRAY_SIZE(hs_jack_gpios),
hs_jack_gpios);
- snd_soc_unregister_card(card);
return 0;
}
This page took
0.025149 seconds
and
5
git commands to generate.