All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()
@ 2017-08-23  5:11 Kuninori Morimoto
  2017-08-23 11:24 ` Applied "ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()" to the asoc tree Mark Brown
  0 siblings, 1 reply; 2+ messages in thread
From: Kuninori Morimoto @ 2017-08-23  5:11 UTC (permalink / raw)
  To: Mark Brown; +Cc: Linux-ALSA, Simon

From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>

wm8524 doesn't register platform, unregister platform is not needed

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
---
 sound/soc/codecs/wm8524.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c
index b66147e..856a695 100644
--- a/sound/soc/codecs/wm8524.c
+++ b/sound/soc/codecs/wm8524.c
@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev)
 
 	ret =  snd_soc_register_codec(&pdev->dev,
 			&soc_codec_dev_wm8524, &wm8524_dai, 1);
-	if (ret < 0) {
+	if (ret < 0)
 		dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
-		snd_soc_unregister_platform(&pdev->dev);
-	}
 
 	return ret;
 }
-- 
1.9.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Applied "ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()" to the asoc tree
  2017-08-23  5:11 [PATCH] ASoC: wm8524: remove unnecessary snd_soc_unregister_platform() Kuninori Morimoto
@ 2017-08-23 11:24 ` Mark Brown
  0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2017-08-23 11:24 UTC (permalink / raw)
  To: Kuninori Morimoto; +Cc: alsa-devel, Mark Brown, Simon

The patch

   ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()

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

>From 6cbcad079ecdb8ecd214d33688fd7f19167fe57a Mon Sep 17 00:00:00 2001
From: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Date: Wed, 23 Aug 2017 05:11:44 +0000
Subject: [PATCH] ASoC: wm8524: remove unnecessary
 snd_soc_unregister_platform()

wm8524 doesn't register platform, unregister platform is not needed

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
---
 sound/soc/codecs/wm8524.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/sound/soc/codecs/wm8524.c b/sound/soc/codecs/wm8524.c
index b66147e0631b..856a6950a451 100644
--- a/sound/soc/codecs/wm8524.c
+++ b/sound/soc/codecs/wm8524.c
@@ -233,10 +233,8 @@ static int wm8524_codec_probe(struct platform_device *pdev)
 
 	ret =  snd_soc_register_codec(&pdev->dev,
 			&soc_codec_dev_wm8524, &wm8524_dai, 1);
-	if (ret < 0) {
+	if (ret < 0)
 		dev_err(&pdev->dev, "Failed to register codec: %d\n", ret);
-		snd_soc_unregister_platform(&pdev->dev);
-	}
 
 	return ret;
 }
-- 
2.14.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2017-08-23 11:25 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-23  5:11 [PATCH] ASoC: wm8524: remove unnecessary snd_soc_unregister_platform() Kuninori Morimoto
2017-08-23 11:24 ` Applied "ASoC: wm8524: remove unnecessary snd_soc_unregister_platform()" to the asoc tree Mark Brown

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.