Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 192043cf authored by Bo Shen's avatar Bo Shen Committed by Mark Brown
Browse files

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: default avatarBo Shen <voice.shen@atmel.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent 6ce4eac1
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -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,