Skip to content

Commit

Permalink
ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Bo Shen authored and Mark Brown committed Dec 31, 2013
1 parent 6ce4eac commit 192043c
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions sound/soc/atmel/sam9x5_wm8731.c
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
of_node_put(codec_np);
of_node_put(cpu_np);

platform_set_drvdata(pdev, card);

ret = snd_soc_register_card(card);
if (ret) {
dev_err(&pdev->dev,
Expand Down

0 comments on commit 192043c

Please sign in to comment.