All of lore.kernel.org
 help / color / mirror / Atom feed
From: Kevin Hilman <khilman@ti.com>
To: Sanjeev Premi <premi@ti.com>
Cc: linux-omap@vger.kernel.org
Subject: Re: [PATCH] omap3: Initialize iva only if available
Date: Fri, 04 Mar 2011 07:35:28 -0800	[thread overview]
Message-ID: <87d3m6lwzj.fsf@ti.com> (raw)
In-Reply-To: <1298640440-4527-1-git-send-email-premi@ti.com> (Sanjeev Premi's message of "Fri, 25 Feb 2011 18:57:20 +0530")

Sanjeev Premi <premi@ti.com> writes:

> IVA device is not present in many OMAP3 variants.
>
> This patch ensures that initialization is tied to
> the presence of IVA on the device.
>
> Signed-off-by: Sanjeev Premi <premi@ti.com>

Thanks, queuing for 2.6.39 (branch: for_2.6.39/pm-misc)

Kevin

> ---
>  arch/arm/mach-omap2/pm.c |    4 +++-
>  1 files changed, 3 insertions(+), 1 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/pm.c b/arch/arm/mach-omap2/pm.c
> index d5a102c..6e4eb7f 100644
> --- a/arch/arm/mach-omap2/pm.c
> +++ b/arch/arm/mach-omap2/pm.c
> @@ -83,7 +83,9 @@ static int _init_omap_device(char *name, struct device **new_dev)
>  static void omap2_init_processor_devices(void)
>  {
>  	_init_omap_device("mpu", &mpu_dev);
> -	_init_omap_device("iva", &iva_dev);
> +	if (omap3_has_iva())
> +		_init_omap_device("iva", &iva_dev);
> +
>  	if (cpu_is_omap44xx()) {
>  		_init_omap_device("l3_main_1", &l3_dev);
>  		_init_omap_device("dsp", &dsp_dev);

      reply	other threads:[~2011-03-04 15:35 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-02-25 13:27 [PATCH] omap3: Initialize iva only if available Sanjeev Premi
2011-03-04 15:35 ` Kevin Hilman [this message]

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=87d3m6lwzj.fsf@ti.com \
    --to=khilman@ti.com \
    --cc=linux-omap@vger.kernel.org \
    --cc=premi@ti.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 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.