aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBo Shen <voice.shen@atmel.com>2013-11-27 05:05:10 -0500
committerMark Brown <broonie@linaro.org>2013-12-31 07:27:07 -0500
commit192043cf608909eb5728a5fd68f5234b90d9415b (patch)
treea1360504ebefed04ec25a2cc8b818f64ecd3463f
parent6ce4eac1f600b34f2f7f58f9cd8f0503d79e42ae (diff)
ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
When call snd_soc_register_card, it will set driver data to this device through dev_set_drvdata, then in driver, no need to call platform_set_drvdata again, so remove it. Signed-off-by: Bo Shen <voice.shen@atmel.com> Signed-off-by: Mark Brown <broonie@linaro.org>
-rw-r--r--sound/soc/atmel/sam9x5_wm8731.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 992ae38d5a15..6f4e812d6e61 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -153,8 +153,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
153 of_node_put(codec_np); 153 of_node_put(codec_np);
154 of_node_put(cpu_np); 154 of_node_put(cpu_np);
155 155
156 platform_set_drvdata(pdev, card);
157
158 ret = snd_soc_register_card(card); 156 ret = snd_soc_register_card(card);
159 if (ret) { 157 if (ret) {
160 dev_err(&pdev->dev, 158 dev_err(&pdev->dev,