projects
/
GitHub
/
LineageOS
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6dab2fd
)
ASoC: ep93xx: Remove redundant dev_set_drvdata() calls
author
Mark Brown
<broonie@linaro.org>
Wed, 26 Jun 2013 10:53:45 +0000
(11:53 +0100)
committer
Mark Brown
<broonie@linaro.org>
Thu, 27 Jun 2013 08:44:19 +0000
(09:44 +0100)
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>
sound/soc/cirrus/ep93xx-ac97.c
patch
|
blob
|
blame
|
history
diff --git
a/sound/soc/cirrus/ep93xx-ac97.c
b/sound/soc/cirrus/ep93xx-ac97.c
index 7798fbd5e81dac21ca7c5c6bb54836786510bd79..d49e0556e381241ba181ca9f4b76161b2d3ec245 100644
(file)
--- 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;
}