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 --- sound/soc/fsl/fsl_ssi.c | 2 -- 1 file changed, 2 deletions(-)
diff --git a/sound/soc/fsl/fsl_ssi.c b/sound/soc/fsl/fsl_ssi.c index 0c072ff..6f4a4c5 100644 --- a/sound/soc/fsl/fsl_ssi.c +++ b/sound/soc/fsl/fsl_ssi.c @@ -909,7 +909,6 @@ error_dai: snd_soc_unregister_component(&pdev->dev);
error_dev: - dev_set_drvdata(&pdev->dev, NULL); device_remove_file(&pdev->dev, dev_attr);
error_clk: @@ -935,7 +934,6 @@ static int fsl_ssi_remove(struct platform_device *pdev) snd_soc_unregister_component(&pdev->dev); device_remove_file(&pdev->dev, &ssi_private->dev_attr); irq_dispose_mapping(ssi_private->irq); - dev_set_drvdata(&pdev->dev, NULL);
return 0; }