summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSachin Kamat <sachin.kamat@linaro.org>2013-05-20 14:08:44 +0530
committerTakashi Iwai <tiwai@suse.de>2013-05-23 14:36:45 +0200
commit3cf981484a002fd02c410741d30b234227f89568 (patch)
tree4e2e82d528f94ce80fde3f278b36ff9398f65d2a
parent2bc594a2764983532887c2c606172bd262c60644 (diff)
downloadop-kernel-dev-3cf981484a002fd02c410741d30b234227f89568.zip
op-kernel-dev-3cf981484a002fd02c410741d30b234227f89568.tar.gz
ALSA: sh_dac_audio: 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> Cc: Rafael Ignacio Zurita <rizurita@yahoo.com> Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r--sound/sh/sh_dac_audio.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/sh/sh_dac_audio.c b/sound/sh/sh_dac_audio.c
index e68c4fc..7c9422c 100644
--- a/sound/sh/sh_dac_audio.c
+++ b/sound/sh/sh_dac_audio.c
@@ -290,8 +290,6 @@ static int snd_sh_dac_pcm(struct snd_sh_dac *chip, int device)
static int snd_sh_dac_remove(struct platform_device *devptr)
{
snd_card_free(platform_get_drvdata(devptr));
- platform_set_drvdata(devptr, NULL);
-
return 0;
}
OpenPOWER on IntegriCloud