From: Bo Shen <voice.shen@atmel.com>
To: broonie@kernel.org
Cc: alsa-devel@alsa-project.org, richard.genoud@gmail.com,
nicolas.ferre@atmel.com, linux-sound@vger.kernel.org,
Bo Shen <voice.shen@atmel.com>,
plagnioj@jcrosoft.com, linux-arm-kernel@lists.infradead.org
Subject: [PATCH 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata
Date: Tue, 26 Nov 2013 04:17:52 +0000 [thread overview]
Message-ID: <1385439472-23352-2-git-send-email-voice.shen@atmel.com> (raw)
In-Reply-To: <1385439472-23352-1-git-send-email-voice.shen@atmel.com>
When call snd_soc_register_card, it will set driver data to this
device through dev_set_drvdata, then in driver, no need to call
platform_set_drvdata again, so remove it.
Signed-off-by: Bo Shen <voice.shen@atmel.com>
---
sound/soc/atmel/sam9x5_wm8731.c | 2 --
1 file changed, 2 deletions(-)
diff --git a/sound/soc/atmel/sam9x5_wm8731.c b/sound/soc/atmel/sam9x5_wm8731.c
index 6dc33ac..4af6836 100644
--- a/sound/soc/atmel/sam9x5_wm8731.c
+++ b/sound/soc/atmel/sam9x5_wm8731.c
@@ -154,8 +154,6 @@ static int sam9x5_wm8731_driver_probe(struct platform_device *pdev)
of_node_put(codec_np);
of_node_put(cpu_np);
- platform_set_drvdata(pdev, card);
-
ret = snd_soc_register_card(card);
if (ret) {
dev_err(&pdev->dev,
--
1.7.9.5
next prev parent reply other threads:[~2013-11-26 4:17 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-11-26 4:17 [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Bo Shen
2013-11-26 4:17 ` Bo Shen [this message]
2013-11-26 11:42 ` [PATCH 2/2] ASoC: atmel: sam9x5_wm8731: remove platform_set_drvdata Richard Genoud
2013-11-26 11:32 ` [PATCH 1/2] ASoC: atmel: sam9x5_wm8731: fix oops when unload module Richard Genoud
2013-11-27 1:13 ` Bo Shen
2013-11-27 10:09 ` Richard Genoud
2013-11-28 1:20 ` Bo Shen
2013-11-29 14:59 ` Richard Genoud
2013-11-26 13:22 ` Mark Brown
2013-11-27 1:16 ` Bo Shen
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=1385439472-23352-2-git-send-email-voice.shen@atmel.com \
--to=voice.shen@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@kernel.org \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-sound@vger.kernel.org \
--cc=nicolas.ferre@atmel.com \
--cc=plagnioj@jcrosoft.com \
--cc=richard.genoud@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