aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/davinci
diff options
context:
space:
mode:
authorManish Badarkhe <manishvb@ti.com>2015-03-26 09:38:25 -0400
committerMark Brown <broonie@kernel.org>2015-03-26 13:01:43 -0400
commita57069e33fbc6625f39e1b09c88ea44629a35206 (patch)
treef9ecb1096055e1b71071986f50f2cd2a6082d119 /sound/soc/davinci
parentc517d838eb7d07bbe9507871fab3931deccff539 (diff)
ASoC: davinci-evm: drop un-necessary remove function
As davinci card gets registered using 'devm_' api there is no need to unregister the card in 'remove' function. Hence drop the 'remove' function. Fixes: ee2f615d6e59c (ASoC: davinci-evm: Add device tree binding) Signed-off-by: Manish Badarkhe <manishvb@ti.com> Signed-off-by: Jyri Sarha <jsarha@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org> Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/davinci')
-rw-r--r--sound/soc/davinci/davinci-evm.c10
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/soc/davinci/davinci-evm.c b/sound/soc/davinci/davinci-evm.c
index b6bb5947a8a8..8c2b9be80a9a 100644
--- a/sound/soc/davinci/davinci-evm.c
+++ b/sound/soc/davinci/davinci-evm.c
@@ -425,18 +425,8 @@ static int davinci_evm_probe(struct platform_device *pdev)
425 return ret; 425 return ret;
426} 426}
427 427
428static int davinci_evm_remove(struct platform_device *pdev)
429{
430 struct snd_soc_card *card = platform_get_drvdata(pdev);
431
432 snd_soc_unregister_card(card);
433
434 return 0;
435}
436
437static struct platform_driver davinci_evm_driver = { 428static struct platform_driver davinci_evm_driver = {
438 .probe = davinci_evm_probe, 429 .probe = davinci_evm_probe,
439 .remove = davinci_evm_remove,
440 .driver = { 430 .driver = {
441 .name = "davinci_evm", 431 .name = "davinci_evm",
442 .pm = &snd_soc_pm_ops, 432 .pm = &snd_soc_pm_ops,