From: Bo Shen Date: Wed, 27 Nov 2013 10:05:10 +0000 (+0800) Subject: ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=192043cf608909eb5728a5fd68f5234b90d9415b;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git 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 Signed-off-by: Mark Brown --- 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) 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,