diff options
author | Vaishali Thakkar <vthakkar1994@gmail.com> | 2015-08-20 18:41:15 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-08-20 19:22:09 +0200 |
commit | 14a500fe1396934c6b3ed8f009459a4723da7862 (patch) | |
tree | 21e7afdb64016f58f6f13b4a374ff2be43e2e5f2 /sound/soc/samsung/arndale_rt5631.c | |
parent | Linux 4.2-rc2 (diff) | |
download | linux-14a500fe1396934c6b3ed8f009459a4723da7862.tar.xz linux-14a500fe1396934c6b3ed8f009459a4723da7862.zip |
ASoC: samsung: Remove redundant arndale_audio_remove
There is no use of snd_soc_unregister_card in remove function
as devm_snd_soc_register_card in probe function automatically
handles it. So, remove use of snd_soc_unregister_card and with
this change remove arndale_audio_remove as it is now redundant.
Signed-off-by: Vaishali Thakkar <vthakkar1994@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Cc: stable@vger.kernel.org
Diffstat (limited to 'sound/soc/samsung/arndale_rt5631.c')
-rw-r--r-- | sound/soc/samsung/arndale_rt5631.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/sound/soc/samsung/arndale_rt5631.c b/sound/soc/samsung/arndale_rt5631.c index 8bf2e2c4bafb..9e371eb3e4fa 100644 --- a/sound/soc/samsung/arndale_rt5631.c +++ b/sound/soc/samsung/arndale_rt5631.c @@ -116,15 +116,6 @@ static int arndale_audio_probe(struct platform_device *pdev) return ret; } -static int arndale_audio_remove(struct platform_device *pdev) -{ - struct snd_soc_card *card = platform_get_drvdata(pdev); - - snd_soc_unregister_card(card); - - return 0; -} - static const struct of_device_id samsung_arndale_rt5631_of_match[] __maybe_unused = { { .compatible = "samsung,arndale-rt5631", }, { .compatible = "samsung,arndale-alc5631", }, @@ -139,7 +130,6 @@ static struct platform_driver arndale_audio_driver = { .of_match_table = of_match_ptr(samsung_arndale_rt5631_of_match), }, .probe = arndale_audio_probe, - .remove = arndale_audio_remove, }; module_platform_driver(arndale_audio_driver); |