summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-20 10:38:42 +0200
committerTakashi Iwai <tiwai@suse.de>2013-05-23 14:35:58 +0200
commit464ede3ce59ba6144ff117ffa6427cac77fc6807 (patch)
tree83c8fa9872847aa3bd4b2aa299498ff43544b291
parentALSA: virmidi: Remove redundant platform_set_drvdata() (diff)
downloadlinux-464ede3ce59ba6144ff117ffa6427cac77fc6807.tar.xz
linux-464ede3ce59ba6144ff117ffa6427cac77fc6807.zip
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>
-rw-r--r--sound/ppc/powermac.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/sound/ppc/powermac.c b/sound/ppc/powermac.c
index 09fc848d32ec..8abb521b4814 100644
--- a/sound/ppc/powermac.c
+++ b/sound/ppc/powermac.c
@@ -139,7 +139,6 @@ __error:
static int snd_pmac_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
- platform_set_drvdata(devptr, NULL);
return 0;
}