summaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorMark Brown <broonie@linaro.org>2013-06-26 12:53:45 +0200
committerMark Brown <broonie@linaro.org>2013-06-27 10:44:19 +0200
commit417ced8b93d16f6f90336fdf6929ed599e74f705 (patch)
treeab69c79a3dccaef276985df5041fbdb83e2d3635 /sound
parentASoC: bf5xx-ac97: Convert to devm_gpio_request_one() (diff)
downloadlinux-417ced8b93d16f6f90336fdf6929ed599e74f705.tar.xz
linux-417ced8b93d16f6f90336fdf6929ed599e74f705.zip
ASoC: ep93xx: Remove redundant dev_set_drvdata() calls
The driver core does this and it's never legal to rely on the value of drvdata if not set in probe() anyway. Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/cirrus/ep93xx-ac97.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c
index 7798fbd5e81d..d49e0556e381 100644
--- a/sound/soc/cirrus/ep93xx-ac97.c
+++ b/sound/soc/cirrus/ep93xx-ac97.c
@@ -405,7 +405,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev)
fail:
platform_set_drvdata(pdev, NULL);
ep93xx_ac97_info = NULL;
- dev_set_drvdata(&pdev->dev, NULL);
return ret;
}
@@ -420,7 +419,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL);
ep93xx_ac97_info = NULL;
- dev_set_drvdata(&pdev->dev, NULL);
return 0;
}