ASoC: ep93xx: Remove redundant dev_set_drvdata() calls
Mark Brown
maintainerPATCH 1/1 ASoC: ep93xx: Remove redundant dev_set_drvdata() calls
From: Mark Brown <[email protected]>
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 <[email protected]>
--- sound/soc/cirrus/ep93xx-ac97.c | 2 -- 1 file changed, 2 deletions(-)
sound/soc/cirrus/ep93xx-ac97.c +0 -2
@@ -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 ; }
Signature · 1 line
1.8.3.1