All of lore.kernel.org
 help / color / mirror / Atom feed
From: Axel Lin <axel.lin@ingics.com>
To: Mark Brown <broonie@kernel.org>
Cc: Atsushi Nemoto <anemo@mba.ocn.ne.jp>,
	Linux MIPS Mailing List <linux-mips@linux-mips.org>,
	Liam Girdwood <lgirdwood@gmail.com>,
	alsa-devel@alsa-project.org
Subject: [PATCH 5/5] ASoC: txx9: Convert to devm_snd_soc_register_platform
Date: Thu, 27 Aug 2015 09:14:50 +0800	[thread overview]
Message-ID: <1440638090.18698.7.camel@ingics.com> (raw)
In-Reply-To: <1440637769.18698.1.camel@ingics.com>

Signed-off-by: Axel Lin <axel.lin@ingics.com>
---
 sound/soc/txx9/txx9aclc.c | 10 ++--------
 1 file changed, 2 insertions(+), 8 deletions(-)

diff --git a/sound/soc/txx9/txx9aclc.c b/sound/soc/txx9/txx9aclc.c
index 88eacfd..a8f705b 100644
--- a/sound/soc/txx9/txx9aclc.c
+++ b/sound/soc/txx9/txx9aclc.c
@@ -411,13 +411,8 @@ static struct snd_soc_platform_driver txx9aclc_soc_platform = {
 
 static int txx9aclc_soc_platform_probe(struct platform_device *pdev)
 {
-	return snd_soc_register_platform(&pdev->dev, &txx9aclc_soc_platform);
-}
-
-static int txx9aclc_soc_platform_remove(struct platform_device *pdev)
-{
-	snd_soc_unregister_platform(&pdev->dev);
-	return 0;
+	return devm_snd_soc_register_platform(&pdev->dev,
+					      &txx9aclc_soc_platform);
 }
 
 static struct platform_driver txx9aclc_pcm_driver = {
@@ -426,7 +421,6 @@ static struct platform_driver txx9aclc_pcm_driver = {
 	},
 
 	.probe = txx9aclc_soc_platform_probe,
-	.remove = txx9aclc_soc_platform_remove,
 };
 
 module_platform_driver(txx9aclc_pcm_driver);
-- 
2.1.0

  parent reply	other threads:[~2015-08-27  1:15 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 ` [PATCH 2/5] ASoC: blackfin: " Axel Lin
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 ` Axel Lin [this message]
2015-08-28 17:44   ` Applied "ASoC: txx9: " 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=1440638090.18698.7.camel@ingics.com \
    --to=axel.lin@ingics.com \
    --cc=alsa-devel@alsa-project.org \
    --cc=anemo@mba.ocn.ne.jp \
    --cc=broonie@kernel.org \
    --cc=lgirdwood@gmail.com \
    --cc=linux-mips@linux-mips.org \
    /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 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.