aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@ingics.com>2015-10-20 07:13:45 -0400
committerMark Brown <broonie@kernel.org>2015-10-22 12:53:32 -0400
commit4901aa065bced55be5ae55b58fc032bfc727fdda (patch)
treeffafcb4317213d49bd8c4947e561e90a39b23019
parentba40a854ea4f9d81368dc023bd25ac4073058039 (diff)
ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card
Signed-off-by: Axel Lin <axel.lin@ingics.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/intel/boards/skl_rt286.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/sound/soc/intel/boards/skl_rt286.c b/sound/soc/intel/boards/skl_rt286.c
index 488c98ee1ded..a73a431bd8b7 100644
--- a/sound/soc/intel/boards/skl_rt286.c
+++ b/sound/soc/intel/boards/skl_rt286.c
@@ -240,18 +240,11 @@ static int skylake_audio_probe(struct platform_device *pdev)
240{ 240{
241 skylake_rt286.dev = &pdev->dev; 241 skylake_rt286.dev = &pdev->dev;
242 242
243 return snd_soc_register_card(&skylake_rt286); 243 return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
244}
245
246static int skylake_audio_remove(struct platform_device *pdev)
247{
248 snd_soc_unregister_card(&skylake_rt286);
249 return 0;
250} 244}
251 245
252static struct platform_driver skylake_audio = { 246static struct platform_driver skylake_audio = {
253 .probe = skylake_audio_probe, 247 .probe = skylake_audio_probe,
254 .remove = skylake_audio_remove,
255 .driver = { 248 .driver = {
256 .name = "skl_alc286s_i2s", 249 .name = "skl_alc286s_i2s",
257 }, 250 },