Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 701c73aa authored by Sachin Kamat's avatar Sachin Kamat Committed by Mark Brown
Browse files

ASoC: ep93xx: Remove redundant platform_set_drvdata()



Commit 0998d063 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.

Signed-off-by: default avatarSachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: default avatarMark Brown <broonie@opensource.wolfsonmicro.com>
parent f722406f
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -403,7 +403,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev)
	return 0;

fail:
	platform_set_drvdata(pdev, NULL);
	ep93xx_ac97_info = NULL;
	dev_set_drvdata(&pdev->dev, NULL);
	return ret;
@@ -418,7 +417,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev)
	/* disable the AC97 controller */
	ep93xx_ac97_write_reg(info, AC97GCR, 0);

	platform_set_drvdata(pdev, NULL);
	ep93xx_ac97_info = NULL;
	dev_set_drvdata(&pdev->dev, NULL);