diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-08-27 09:13:46 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-28 18:08:44 +0100 |
commit | 637c4497bbf0c9a4e00d6be2731bd560bf609f6b (patch) | |
tree | 78405eb5deed33aec3e9acc4fd25f2f96317cea5 /sound/soc/pxa/mmp-pcm.c | |
parent | 2cf32b7b338086e9b85bb9fdd8aa398e89d83e9e (diff) | |
download | linux-stable-637c4497bbf0c9a4e00d6be2731bd560bf609f6b.tar.gz linux-stable-637c4497bbf0c9a4e00d6be2731bd560bf609f6b.tar.bz2 linux-stable-637c4497bbf0c9a4e00d6be2731bd560bf609f6b.zip |
ASoC: pxa: Convert to devm_snd_soc_register_platform
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/pxa/mmp-pcm.c')
-rw-r--r-- | sound/soc/pxa/mmp-pcm.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/pxa/mmp-pcm.c b/sound/soc/pxa/mmp-pcm.c index 1eb45dcfb8e8..51e790d006f5 100644 --- a/sound/soc/pxa/mmp-pcm.c +++ b/sound/soc/pxa/mmp-pcm.c @@ -232,13 +232,7 @@ static int mmp_pcm_probe(struct platform_device *pdev) mmp_pcm_hardware[SNDRV_PCM_STREAM_CAPTURE].period_bytes_max = pdata->period_max_capture; } - return snd_soc_register_platform(&pdev->dev, &mmp_soc_platform); -} - -static int mmp_pcm_remove(struct platform_device *pdev) -{ - snd_soc_unregister_platform(&pdev->dev); - return 0; + return devm_snd_soc_register_platform(&pdev->dev, &mmp_soc_platform); } static struct platform_driver mmp_pcm_driver = { @@ -247,7 +241,6 @@ static struct platform_driver mmp_pcm_driver = { }, .probe = mmp_pcm_probe, - .remove = mmp_pcm_remove, }; module_platform_driver(mmp_pcm_driver); |