From: Bo Shen <voice.shen@atmel.com>
To: Mark Brown <broonie@opensource.wolfsonmicro.com>
Cc: Liam Girdwood <liam.r.girdwood@linux.intel.com>,
alsa-devel@alsa-project.org
Subject: Re: [PATCH] ASoC: sam9g20ek: Let device core handle pinctrl
Date: Tue, 7 May 2013 10:10:10 +0800 [thread overview]
Message-ID: <51886282.8060106@atmel.com> (raw)
In-Reply-To: <1367868508-12329-1-git-send-email-broonie@opensource.wolfsonmicro.com>
Hi Mark,
On 5/7/2013 03:28, Mark Brown wrote:
> Since commit ab78029 (drivers/pinctrl: grab default handles from device
> core) we can rely on device core for handling pinctrl so remove
> devm_pinctrl_get_select_default() from the driver.
>
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
> sound/soc/atmel/sam9g20_wm8731.c | 9 ---------
> 1 file changed, 9 deletions(-)
>
> diff --git a/sound/soc/atmel/sam9g20_wm8731.c b/sound/soc/atmel/sam9g20_wm8731.c
> index 2d6fbd0..802717e 100644
> --- a/sound/soc/atmel/sam9g20_wm8731.c
> +++ b/sound/soc/atmel/sam9g20_wm8731.c
> @@ -38,8 +38,6 @@
> #include <linux/platform_device.h>
> #include <linux/i2c.h>
>
> -#include <linux/pinctrl/consumer.h>
> -
> #include <linux/atmel-ssc.h>
>
> #include <sound/core.h>
> @@ -203,15 +201,8 @@ static int at91sam9g20ek_audio_probe(struct platform_device *pdev)
> struct device_node *codec_np, *cpu_np;
> struct clk *pllb;
> struct snd_soc_card *card = &snd_soc_at91sam9g20ek;
> - struct pinctrl *pinctrl;
> int ret;
>
> - pinctrl = devm_pinctrl_get_select_default(&pdev->dev);
> - if (IS_ERR(pinctrl)) {
> - dev_err(&pdev->dev, "Failed to request pinctrl for mck\n");
> - return PTR_ERR(pinctrl);
> - }
> -
I have one question: with this patch, if lose default pinctrl
configuration in dts/dtsi file, how should we know that?
Best Regards,
Bo Shen
next prev parent reply other threads:[~2013-05-07 2:10 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-06 19:28 [PATCH] ASoC: sam9g20ek: Let device core handle pinctrl Mark Brown
2013-05-07 2:10 ` Bo Shen [this message]
2013-05-07 9:01 ` Mark Brown
2013-05-07 9:27 ` 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=51886282.8060106@atmel.com \
--to=voice.shen@atmel.com \
--cc=alsa-devel@alsa-project.org \
--cc=broonie@opensource.wolfsonmicro.com \
--cc=liam.r.girdwood@linux.intel.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