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

Commit ba1fb695 authored by Fabio Estevam's avatar Fabio Estevam Committed by Mark Brown
Browse files

ASoC: ep93xx-i2s: Remove unnecessary dev_set_drvdata()



Driver core clears the driver data to NULL after device_release or on probe
failure, so just remove it from here.

Signed-off-by: default avatarFabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: default avatarMark Brown <broonie@linaro.org>
parent bd23ee0c
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -408,7 +408,6 @@ static int ep93xx_i2s_probe(struct platform_device *pdev)
	return 0;

fail_put_lrclk:
	dev_set_drvdata(&pdev->dev, NULL);
	clk_put(info->lrclk);
fail_put_sclk:
	clk_put(info->sclk);
@@ -423,7 +422,6 @@ static int ep93xx_i2s_remove(struct platform_device *pdev)
	struct ep93xx_i2s_info *info = dev_get_drvdata(&pdev->dev);

	snd_soc_unregister_component(&pdev->dev);
	dev_set_drvdata(&pdev->dev, NULL);
	clk_put(info->lrclk);
	clk_put(info->sclk);
	clk_put(info->mclk);