alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/3] ASoC: fsl_ssi: Remove unnecessary dev_set_drvdata()
@ 2013-08-26 12:25 Fabio Estevam
  2013-08-26 12:25 ` [PATCH 2/3] ASoC: ep93xx-i2s: " Fabio Estevam
                   ` (2 more replies)
  0 siblings, 3 replies; 6+ messages in thread
From: Fabio Estevam @ 2013-08-26 12:25 UTC (permalink / raw)
  To: broonie; +Cc: Fabio Estevam, alsa-devel

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;
 }
-- 
1.8.1.2

^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2013-08-29 12:22 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2013-08-26 12:25 [PATCH 1/3] ASoC: fsl_ssi: Remove unnecessary dev_set_drvdata() Fabio Estevam
2013-08-26 12:25 ` [PATCH 2/3] ASoC: ep93xx-i2s: " Fabio Estevam
2013-08-29 12:21   ` Mark Brown
2013-08-26 12:25 ` [PATCH 3/3] ASoC: designware_i2s: " Fabio Estevam
2013-08-29 12:18   ` Mark Brown
2013-08-26 19:42 ` [PATCH 1/3] ASoC: fsl_ssi: " Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).