diff options
author | Manish Badarkhe <badarkhe.manish@gmail.com> | 2014-07-08 21:55:23 +0530 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-09 10:14:52 +0200 |
commit | 36765c9c0623e87ab5ac6cfc07f66072b83edfdc (patch) | |
tree | eed53fe69019230112d109fc860046a35b443c5c /sound/soc/omap/omap-mcbsp.c | |
parent | 76a77f47123945f6e5a4dd167e54768012ef9669 (diff) | |
download | linux-36765c9c0623e87ab5ac6cfc07f66072b83edfdc.tar.gz linux-36765c9c0623e87ab5ac6cfc07f66072b83edfdc.tar.bz2 linux-36765c9c0623e87ab5ac6cfc07f66072b83edfdc.zip |
ASoC: omap-mcbsp: Use devm_snd_soc_register_component
Replaced snd_soc_register_component with its devres equivalent,
devm_snd_soc_register_component.
Signed-off-by: Manish Badarkhe <badarkhe.manish@gmail.com>
Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc/omap/omap-mcbsp.c')
-rw-r--r-- | sound/soc/omap/omap-mcbsp.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/sound/soc/omap/omap-mcbsp.c b/sound/soc/omap/omap-mcbsp.c index efe2cd699b77..bd3ef2a88be0 100644 --- a/sound/soc/omap/omap-mcbsp.c +++ b/sound/soc/omap/omap-mcbsp.c @@ -805,8 +805,9 @@ static int asoc_mcbsp_probe(struct platform_device *pdev) if (ret) return ret; - ret = snd_soc_register_component(&pdev->dev, &omap_mcbsp_component, - &omap_mcbsp_dai, 1); + ret = devm_snd_soc_register_component(&pdev->dev, + &omap_mcbsp_component, + &omap_mcbsp_dai, 1); if (ret) return ret; @@ -817,8 +818,6 @@ static int asoc_mcbsp_remove(struct platform_device *pdev) { struct omap_mcbsp *mcbsp = platform_get_drvdata(pdev); - snd_soc_unregister_component(&pdev->dev); - if (mcbsp->pdata->ops && mcbsp->pdata->ops->free) mcbsp->pdata->ops->free(mcbsp->id); |