Skip to contentSkip to conversation

ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card

PATCH In review Axel Lin 2 participants 2 messages Oct 20, 2015 – Oct 22, 2015

Subsystems (3)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH v2 1/1 ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card

---
 sound/soc/intel/boards/skl_rt286.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
sound/soc/intel/boards/skl_rt286.c +1 -8
index 488c98e..a73a431 100644
@@ -240,18 +240,11 @@ static int skylake_audio_probe(struct platform_device *pdev)
 {
 	skylake_rt286.dev = &pdev->dev;
 
-	return snd_soc_register_card(&skylake_rt286);
-}
-
-static int skylake_audio_remove(struct platform_device *pdev)
-{
-	snd_soc_unregister_card(&skylake_rt286);
-	return 0;
+	return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
 }
 
 static struct platform_driver skylake_audio = {
 	.probe = skylake_audio_probe,
-	.remove = skylake_audio_remove,
 	.driver = {
 		.name = "skl_alc286s_i2s",
 	},
Signature · 1 line
2.1.4
maintainer
#1 lore raw

Applied "ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card" to the asoc tree

The patch

ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card

has been applied to the asoc tree at

git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git

All being well this means that it will be integrated into the linux-next tree (usually sometime in the next 24 hours) and sent to Linus during the next merge window (or sooner if it is a bug fix), however if problems are discovered then the patch may be dropped or reverted.

You may get further e-mails resulting from automated or manual testing and review of the tree, please engage with people reporting problems and send followup patches addressing any issues that are reported if needed.

If any updates are required or you are submitting further changes they should be sent as incremental updates against current git, existing patches will not be replaced.

Please add any relevant lists and maintainers to the CCs when replying to this mail.

Thanks,
Mark

Quoted 1 line

From 4901aa065bced55be5ae55b58fc032bfc727fdda Mon Sep 17 00:00:00 2001

From: Axel Lin <[email protected]>
Date: Tue, 20 Oct 2015 19:13:45 +0800
Subject: [PATCH] ASoC: Intel: Skylake: Convert to devm_snd_soc_register_card

---
 sound/soc/intel/boards/skl_rt286.c | 9 +--------
 1 file changed, 1 insertion(+), 8 deletions(-)
sound/soc/intel/boards/skl_rt286.c +1 -8
index 488c98e..a73a431 100644
@@ -240,18 +240,11 @@ static int skylake_audio_probe(struct platform_device *pdev)
 {
 	skylake_rt286.dev = &pdev->dev;
 
-	return snd_soc_register_card(&skylake_rt286);
-}
-
-static int skylake_audio_remove(struct platform_device *pdev)
-{
-	snd_soc_unregister_card(&skylake_rt286);
-	return 0;
+	return devm_snd_soc_register_card(&pdev->dev, &skylake_rt286);
 }
 
 static struct platform_driver skylake_audio = {
 	.probe = skylake_audio_probe,
-	.remove = skylake_audio_remove,
 	.driver = {
 		.name = "skl_alc286s_i2s",
 	},
Signature · 1 line
2.6.1