diff options
author | Axel Lin <axel.lin@ingics.com> | 2015-09-02 12:01:27 +0800 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-09-14 18:39:23 +0100 |
commit | 9ed747641b0fe122a827494b1d490bc2e2e45347 (patch) | |
tree | 08b0171c0a6bda611535efe68eec4220ce1bbde9 /sound/soc/intel/boards | |
parent | 6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f (diff) | |
download | linux-9ed747641b0fe122a827494b1d490bc2e2e45347.tar.bz2 |
ASoC: intel: broadwell: Convert to devm_snd_soc_register_card
Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/intel/boards')
-rw-r--r-- | sound/soc/intel/boards/broadwell.c | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/intel/boards/broadwell.c b/sound/soc/intel/boards/broadwell.c index 8bafaf6ceab1..3f8a1e10bed0 100644 --- a/sound/soc/intel/boards/broadwell.c +++ b/sound/soc/intel/boards/broadwell.c @@ -266,18 +266,11 @@ static int broadwell_audio_probe(struct platform_device *pdev) { broadwell_rt286.dev = &pdev->dev; - return snd_soc_register_card(&broadwell_rt286); -} - -static int broadwell_audio_remove(struct platform_device *pdev) -{ - snd_soc_unregister_card(&broadwell_rt286); - return 0; + return devm_snd_soc_register_card(&pdev->dev, &broadwell_rt286); } static struct platform_driver broadwell_audio = { .probe = broadwell_audio_probe, - .remove = broadwell_audio_remove, .driver = { .name = "broadwell-audio", }, |