Commit 464ede3ce59ba6144ff117ffa6427cac77fc6807

Authored by Sachin Kamat
Committed by Takashi Iwai
1 parent 50c7d0da64

ALSA: powermac: 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>
Signed-off-by: Takashi Iwai <tiwai@suse.de>

Showing 1 changed file with 0 additions and 1 deletions Side-by-side Diff

sound/ppc/powermac.c
... ... @@ -139,7 +139,6 @@
139 139 static int snd_pmac_remove(struct platform_device *devptr)
140 140 {
141 141 snd_card_free(platform_get_drvdata(devptr));
142   - platform_set_drvdata(devptr, NULL);
143 142 return 0;
144 143 }
145 144