Commit 701c73aa89032f2551cdc73725cb881c0886d86f
Committed by
Mark Brown
1 parent
f722406faa
Exists in
smarc-imx_3.14.28_1.0.0_ga
and in
1 other branch
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>
Showing 1 changed file with 0 additions and 2 deletions Side-by-side Diff
sound/soc/cirrus/ep93xx-ac97.c
... | ... | @@ -403,7 +403,6 @@ |
403 | 403 | return 0; |
404 | 404 | |
405 | 405 | fail: |
406 | - platform_set_drvdata(pdev, NULL); | |
407 | 406 | ep93xx_ac97_info = NULL; |
408 | 407 | dev_set_drvdata(&pdev->dev, NULL); |
409 | 408 | return ret; |
... | ... | @@ -418,7 +417,6 @@ |
418 | 417 | /* disable the AC97 controller */ |
419 | 418 | ep93xx_ac97_write_reg(info, AC97GCR, 0); |
420 | 419 | |
421 | - platform_set_drvdata(pdev, NULL); | |
422 | 420 | ep93xx_ac97_info = NULL; |
423 | 421 | dev_set_drvdata(&pdev->dev, NULL); |
424 | 422 |