[alsa-devel] [RESEND PATCH v2 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata

Bo Shen voice.shen at atmel.com
Wed Dec 18 07:55:41 CET 2013

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 at atmel.com>
Tested-by: Richard Genoud <richard.genoud at gmail.com>
Hi Mark,
   This patch is not in your tree, so I resend it.

 sound/soc/atmel/sam9x5_wm8731.c |    2 --
 1 file changed, 2 deletions(-)

diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 7d6a905..3188036 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -155,8 +155,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
-	platform_set_drvdata(pdev, card);
 	ret = snd_soc_register_card(card);
 	if (ret) {

More information about the Alsa-devel mailing list