Commit e31c834e authored by Manish Badarkhe's avatar Manish Badarkhe Committed by Sasha Levin

ASoC: davinci-evm: drop un-necessary remove function

[ Upstream commit a57069e3 ]

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: ee2f615d (ASoC: davinci-evm: Add device tree binding)
Signed-off-by: default avatarManish Badarkhe <manishvb@ti.com>
Signed-off-by: default avatarJyri Sarha <jsarha@ti.com>
Signed-off-by: default avatarMark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: default avatarSasha Levin <sasha.levin@oracle.com>
parent 26ea595b
...@@ -431,18 +431,8 @@ static int davinci_evm_probe(struct platform_device *pdev) ...@@ -431,18 +431,8 @@ static int davinci_evm_probe(struct platform_device *pdev)
return ret; return ret;
} }
static int davinci_evm_remove(struct platform_device *pdev)
{
struct snd_soc_card *card = platform_get_drvdata(pdev);
snd_soc_unregister_card(card);
return 0;
}
static struct platform_driver davinci_evm_driver = { static struct platform_driver davinci_evm_driver = {
.probe = davinci_evm_probe, .probe = davinci_evm_probe,
.remove = davinci_evm_remove,
.driver = { .driver = {
.name = "davinci_evm", .name = "davinci_evm",
.owner = THIS_MODULE, .owner = THIS_MODULE,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment