Commit 417ced8b authored by Mark Brown's avatar Mark Brown

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: default avatarMark Brown <broonie@linaro.org>
parent 6dab2fd7
...@@ -405,7 +405,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev) ...@@ -405,7 +405,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev)
fail: fail:
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
ep93xx_ac97_info = NULL; ep93xx_ac97_info = NULL;
dev_set_drvdata(&pdev->dev, NULL);
return ret; return ret;
} }
...@@ -420,7 +419,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev) ...@@ -420,7 +419,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev)
platform_set_drvdata(pdev, NULL); platform_set_drvdata(pdev, NULL);
ep93xx_ac97_info = NULL; ep93xx_ac97_info = NULL;
dev_set_drvdata(&pdev->dev, NULL);
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment