From: Axel Lin <axel.lin@ingics.com>
To: Mark Brown <broonie@kernel.org>
Cc: alsa-devel@alsa-project.org,
adi-buildroot-devel@lists.sourceforge.net,
Liam Girdwood <lgirdwood@gmail.com>
Subject: [PATCH 2/5] ASoC: blackfin: Convert to devm_snd_soc_register_platform
Date: Thu, 27 Aug 2015 09:11:13 +0800 [thread overview]
Message-ID: <1440637873.18698.3.camel@ingics.com> (raw)
In-Reply-To: <1440637769.18698.1.camel@ingics.com>
Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
sound/soc/blackfin/bf5xx-ac97-pcm.c | 10 ++--------
sound/soc/blackfin/bf5xx-i2s-pcm.c | 10 ++--------
2 files changed, 4 insertions(+), 16 deletions(-)
diff --git a/sound/soc/blackfin/bf5xx-ac97-pcm.c b/sound/soc/blackfin/bf5xx-ac97-pcm.c
index 238913e..02ad260 100644
--- a/sound/soc/blackfin/bf5xx-ac97-pcm.c
+++ b/sound/soc/blackfin/bf5xx-ac97-pcm.c
@@ -450,13 +450,8 @@ static struct snd_soc_platform_driver bf5xx_ac97_soc_platform = {
static int bf5xx_soc_platform_probe(struct platform_device *pdev)
{
- return snd_soc_register_platform(&pdev->dev, &bf5xx_ac97_soc_platform);
-}
-
-static int bf5xx_soc_platform_remove(struct platform_device *pdev)
-{
- snd_soc_unregister_platform(&pdev->dev);
- return 0;
+ return devm_snd_soc_register_platform(&pdev->dev,
+ &bf5xx_ac97_soc_platform);
}
static struct platform_driver bf5xx_pcm_driver = {
@@ -465,7 +460,6 @@ static struct platform_driver bf5xx_pcm_driver = {
},
.probe = bf5xx_soc_platform_probe,
- .remove = bf5xx_soc_platform_remove,
};
module_platform_driver(bf5xx_pcm_driver);
diff --git a/sound/soc/blackfin/bf5xx-i2s-pcm.c b/sound/soc/blackfin/bf5xx-i2s-pcm.c
index d95477af..6cba211d 100644
--- a/sound/soc/blackfin/bf5xx-i2s-pcm.c
+++ b/sound/soc/blackfin/bf5xx-i2s-pcm.c
@@ -342,13 +342,8 @@ static struct snd_soc_platform_driver bf5xx_i2s_soc_platform = {
static int bfin_i2s_soc_platform_probe(struct platform_device *pdev)
{
- return snd_soc_register_platform(&pdev->dev, &bf5xx_i2s_soc_platform);
-}
-
-static int bfin_i2s_soc_platform_remove(struct platform_device *pdev)
-{
- snd_soc_unregister_platform(&pdev->dev);
- return 0;
+ return devm_snd_soc_register_platform(&pdev->dev,
+ &bf5xx_i2s_soc_platform);
}
static struct platform_driver bfin_i2s_pcm_driver = {
@@ -357,7 +352,6 @@ static struct platform_driver bfin_i2s_pcm_driver = {
},
.probe = bfin_i2s_soc_platform_probe,
- .remove = bfin_i2s_soc_platform_remove,
};
module_platform_driver(bfin_i2s_pcm_driver);
--
2.1.0
next prev parent reply other threads:[~2015-08-27 1:11 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2015-08-27 1:09 [PATCH 1/5] ASoC: au1x: Convert to devm_snd_soc_register_platform Axel Lin
2015-08-27 1:11 ` Axel Lin [this message]
2015-08-28 17:44 ` Applied "ASoC: blackfin: Convert to devm_snd_soc_register_platform" to the asoc tree Mark Brown
2015-08-27 1:12 ` [PATCH 3/5] ASoC: nuc900: Convert to devm_snd_soc_register_platform Axel Lin
2015-08-28 17:44 ` Applied "ASoC: nuc900: Convert to devm_snd_soc_register_platform" to the asoc tree Mark Brown
2015-08-27 1:13 ` [PATCH 4/5] ASoC: pxa: Convert to devm_snd_soc_register_platform Axel Lin
2015-08-28 17:44 ` Applied "ASoC: pxa: Convert to devm_snd_soc_register_platform" to the asoc tree Mark Brown
2015-08-27 1:14 ` [PATCH 5/5] ASoC: txx9: Convert to devm_snd_soc_register_platform Axel Lin
2015-08-28 17:44 ` Applied "ASoC: txx9: Convert to devm_snd_soc_register_platform" to the asoc tree Mark Brown
2015-08-28 17:44 ` Applied "ASoC: au1x: " Mark Brown
2015-08-30 6:24 ` [PATCH 1/5] ASoC: au1x: Convert to devm_snd_soc_register_platform Manuel Lauss
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1440637873.18698.3.camel@ingics.com \
--to=axel.lin@ingics.com \
--cc=adi-buildroot-devel@lists.sourceforge.net \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=lgirdwood@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox