public inbox for linux-arm-kernel@lists.infradead.org
 help / color / mirror / Atom feed
From: sshtylyov@mvista.com (Sergei Shtylyov)
To: linux-arm-kernel@lists.infradead.org
Subject: [PATCH] davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio
Date: Fri, 21 Jan 2011 18:23:32 +0300	[thread overview]
Message-ID: <4D39A4F4.9010809@mvista.com> (raw)
In-Reply-To: <1295622739-7885-1-git-send-email-sudhakar.raj@ti.com>

Hello.

Rajashekhara, Sudhakar wrote:

> After the multi-component commit f0fba2ad

   Please also specify the commit summary in parens, as asked by Linus.

> for ASoC, we need to
> register the platform device for davinci-pcm-audio.

> This patch and patch at [1] are required for audio to work on
> DA850/OMAP-L138.

> [1] https://patchwork.kernel.org/patch/495211/

> Signed-off-by: Rajashekhara, Sudhakar <sudhakar.raj@ti.com>
> Tested-by: Dan Sharon <dansharon@nanometrics.ca>
> ---
>  arch/arm/mach-davinci/devices-da8xx.c |   12 ++++++++++++
>  1 files changed, 12 insertions(+), 0 deletions(-)

> diff --git a/arch/arm/mach-davinci/devices-da8xx.c b/arch/arm/mach-davinci/devices-da8xx.c
> index 9eec630..062190b 100644
> --- a/arch/arm/mach-davinci/devices-da8xx.c
> +++ b/arch/arm/mach-davinci/devices-da8xx.c
> @@ -480,8 +480,20 @@ static struct platform_device da850_mcasp_device = {
>  	.resource	= da850_mcasp_resources,
>  };
>  
> +struct platform_device davinci_pcm_device = {
> +	.name	= "davinci-pcm-audio",
> +	.id	= -1,
> +};
> +
> +static void davinci_init_pcm(void)
> +{
> +	platform_device_register(&davinci_pcm_device);
> +}
> +
>  void __init da8xx_register_mcasp(int id, struct snd_platform_data *pdata)
>  {
> +	davinci_init_pcm();

    Why not call platform_device_register() directly?

WBR, Sergei

  reply	other threads:[~2011-01-21 15:23 UTC|newest]

Thread overview: 3+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-01-21 15:12 [PATCH] davinci: da8xx/omap-l1x: add platform device for davinci-pcm-audio Rajashekhara, Sudhakar
2011-01-21 15:23 ` Sergei Shtylyov [this message]
2011-01-21 15:36   ` Rajashekhara, Sudhakar

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=4D39A4F4.9010809@mvista.com \
    --to=sshtylyov@mvista.com \
    --cc=linux-arm-kernel@lists.infradead.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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox