From: Mark Brown broonie@linaro.org
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 | 2 -- 1 file changed, 2 deletions(-)
diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c index 3f4f888..f193701 100644 --- a/sound/soc/cirrus/ep93xx-ac97.c +++ b/sound/soc/cirrus/ep93xx-ac97.c @@ -398,7 +398,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev)
fail: ep93xx_ac97_info = NULL; - dev_set_drvdata(&pdev->dev, NULL); return ret; }
@@ -412,7 +411,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev) ep93xx_ac97_write_reg(info, AC97GCR, 0);
ep93xx_ac97_info = NULL; - dev_set_drvdata(&pdev->dev, NULL);
return 0; }