Skip to content

Commit

Permalink
ASoC: fsl_ssi: Remove unnecessary dev_set_drvdata()
Browse files Browse the repository at this point in the history
Driver core clears the driver data to NULL after device_release or on probe
failure, so just remove it from here.

Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
  • Loading branch information
Fabio Estevam authored and Mark Brown committed Aug 26, 2013
1 parent 6d22db4 commit f61df38
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion sound/soc/fsl/fsl_ssi.c
Original file line number Diff line number Diff line change
Expand Up @@ -1114,7 +1114,6 @@ static int fsl_ssi_probe(struct platform_device *pdev)
snd_soc_unregister_component(&pdev->dev);

error_dev:
dev_set_drvdata(&pdev->dev, NULL);
device_remove_file(&pdev->dev, dev_attr);

error_clk:
Expand Down

0 comments on commit f61df38

Please sign in to comment.