aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-03 02:56:28 -0400
committerTakashi Iwai <tiwai@suse.de>2013-05-03 05:40:23 -0400
commit9ea6cfbc2a31b87189a99fa8311c7d8d449f6a32 (patch)
treeeea1dfc2fde471c2291ea5d4dd6813d1960d6fa9 /sound
parentf91eeeb59583087722dc0699ac8aaf4b6af4a77f (diff)
ALSA: atmel: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no driver is bound) removes the need to set driver data field to NULL. Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org> Acked-by: Hans-Christian Egtvedt <egtvedt@samfundet.no> Acked-by: Nicolas Ferre <nicolas.ferre@atmel.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound')
-rw-r--r--sound/atmel/abdac.c2
-rw-r--r--sound/atmel/ac97c.c2
2 files changed, 0 insertions, 4 deletions
diff --git a/sound/atmel/abdac.c b/sound/atmel/abdac.c
index 071ce1b5f2b4..872d59e35ee2 100644
--- a/sound/atmel/abdac.c
+++ b/sound/atmel/abdac.c
@@ -583,8 +583,6 @@ static int atmel_abdac_remove(struct platform_device *pdev)
583 free_irq(dac->irq, dac); 583 free_irq(dac->irq, dac);
584 snd_card_free(card); 584 snd_card_free(card);
585 585
586 platform_set_drvdata(pdev, NULL);
587
588 return 0; 586 return 0;
589} 587}
590 588
diff --git a/sound/atmel/ac97c.c b/sound/atmel/ac97c.c
index 6b7e2b5a72de..ae63d22c0f88 100644
--- a/sound/atmel/ac97c.c
+++ b/sound/atmel/ac97c.c
@@ -1199,8 +1199,6 @@ static int atmel_ac97c_remove(struct platform_device *pdev)
1199 snd_card_set_dev(card, NULL); 1199 snd_card_set_dev(card, NULL);
1200 snd_card_free(card); 1200 snd_card_free(card);
1201 1201
1202 platform_set_drvdata(pdev, NULL);
1203
1204 return 0; 1202 return 0;
1205} 1203}
1206 1204