* [PATCH] omap3: Initialize iva only if available
@ 2011-02-25 13:27 Sanjeev Premi
2011-03-04 15:35 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Sanjeev Premi @ 2011-02-25 13:27 UTC (permalink / raw)
To: linux-omap; +Cc: Sanjeev Premi
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>
---
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);
--
1.7.2.2
^ permalink raw reply related [flat|nested] 2+ messages in thread* Re: [PATCH] omap3: Initialize iva only if available
2011-02-25 13:27 [PATCH] omap3: Initialize iva only if available Sanjeev Premi
@ 2011-03-04 15:35 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2011-03-04 15:35 UTC (permalink / raw)
To: Sanjeev Premi; +Cc: linux-omap
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);
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-03-04 15:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-25 13:27 [PATCH] omap3: Initialize iva only if available Sanjeev Premi
2011-03-04 15:35 ` Kevin Hilman
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.