diff options
author | Sachin Kamat <sachin.kamat@linaro.org> | 2013-05-03 05:09:22 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-05-12 12:44:54 -0400 |
commit | 701c73aa89032f2551cdc73725cb881c0886d86f (patch) | |
tree | a5c379ca8b9d8a0b442d7c62eea123bd8b926a2e | |
parent | f722406faae2d073cc1d01063d1123c35425939e (diff) |
ASoC: ep93xx: Remove redundant platform_set_drvdata()
Commit 0998d06310 (device-core: Ensure drvdata = NULL when no
driver is bound) removes the need to set driver data field to
NULL.
Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/cirrus/ep93xx-ac97.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/sound/soc/cirrus/ep93xx-ac97.c b/sound/soc/cirrus/ep93xx-ac97.c index 7798fbd5e81d..840c9b18201e 100644 --- a/sound/soc/cirrus/ep93xx-ac97.c +++ b/sound/soc/cirrus/ep93xx-ac97.c | |||
@@ -403,7 +403,6 @@ static int ep93xx_ac97_probe(struct platform_device *pdev) | |||
403 | return 0; | 403 | return 0; |
404 | 404 | ||
405 | fail: | 405 | fail: |
406 | platform_set_drvdata(pdev, NULL); | ||
407 | ep93xx_ac97_info = NULL; | 406 | ep93xx_ac97_info = NULL; |
408 | dev_set_drvdata(&pdev->dev, NULL); | 407 | dev_set_drvdata(&pdev->dev, NULL); |
409 | return ret; | 408 | return ret; |
@@ -418,7 +417,6 @@ static int ep93xx_ac97_remove(struct platform_device *pdev) | |||
418 | /* disable the AC97 controller */ | 417 | /* disable the AC97 controller */ |
419 | ep93xx_ac97_write_reg(info, AC97GCR, 0); | 418 | ep93xx_ac97_write_reg(info, AC97GCR, 0); |
420 | 419 | ||
421 | platform_set_drvdata(pdev, NULL); | ||
422 | ep93xx_ac97_info = NULL; | 420 | ep93xx_ac97_info = NULL; |
423 | dev_set_drvdata(&pdev->dev, NULL); | 421 | dev_set_drvdata(&pdev->dev, NULL); |
424 | 422 | ||