ASoC: Samsung: Remove redundant platform_set_drvdata()
authorSachin Kamat <sachin.kamat@linaro.org>
Fri, 3 May 2013 09:09:19 +0000 (14:39 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Sun, 12 May 2013 16:49:13 +0000 (20:49 +0400)
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/samsung/smdk_wm8580pcm.c
sound/soc/samsung/smdk_wm8994pcm.c

index e43bd4294f99ad26011744f0192a83aaad89f9c3..23a9204b106d66a7e6a64eb8f7dc7f3b5bb2e186 100644 (file)
@@ -176,7 +176,6 @@ static int snd_smdk_probe(struct platform_device *pdev)
 static int snd_smdk_remove(struct platform_device *pdev)
 {
        snd_soc_unregister_card(&smdk_pcm);
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }
 
index 3688a32000a2bc752122958abdd4818cfb7d7046..0c84ca0996126b86c28dc9412dbfd08494501c02 100644 (file)
@@ -146,7 +146,6 @@ static int snd_smdk_probe(struct platform_device *pdev)
 static int snd_smdk_remove(struct platform_device *pdev)
 {
        snd_soc_unregister_card(&smdk_pcm);
-       platform_set_drvdata(pdev, NULL);
        return 0;
 }