Skip to contentSkip to conversation

ASoC: ep93xx: Remove redundant dev_set_drvdata() calls

PATCH New Mark Brown 1 participant 1 message Jun 26, 2013

Subsystems (2)
lore
Share & tools
lore

Mark Brown

author maintainer
#0 lore raw

PATCH 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.

---
 sound/soc/cirrus/ep93xx-ac97.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/cirrus/ep93xx-ac97.c +0 -2
index 3f4f888..f193701 100644
@@ -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