* [PATCH] omap: opp: test for iva before attempting to set iva opp
@ 2012-03-14 13:48 Maximilian Schwerin
2012-03-14 17:09 ` Kevin Hilman
0 siblings, 1 reply; 2+ messages in thread
From: Maximilian Schwerin @ 2012-03-14 13:48 UTC (permalink / raw)
To: linux-omap; +Cc: Steve Sakoman, Maximilian Schwerin
From: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
Signed-off-by: Maximilian Schwerin <mvs@tigris.de>
---
arch/arm/mach-omap2/opp.c | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
diff --git a/arch/arm/mach-omap2/opp.c b/arch/arm/mach-omap2/opp.c
index 9262a6b..414f2ec 100644
--- a/arch/arm/mach-omap2/opp.c
+++ b/arch/arm/mach-omap2/opp.c
@@ -62,6 +62,10 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def,
__func__, i);
return -EINVAL;
}
+
+ if ((strcmp(opp_def->hwmod_name,"iva") == 0) && !omap3_has_iva())
+ continue;
+
oh = omap_hwmod_lookup(opp_def->hwmod_name);
if (!oh || !oh->od) {
pr_warn("%s: no hwmod or odev for %s, [%d] "
--
1.7.0.4
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] omap: opp: test for iva before attempting to set iva opp
2012-03-14 13:48 [PATCH] omap: opp: test for iva before attempting to set iva opp Maximilian Schwerin
@ 2012-03-14 17:09 ` Kevin Hilman
0 siblings, 0 replies; 2+ messages in thread
From: Kevin Hilman @ 2012-03-14 17:09 UTC (permalink / raw)
To: Maximilian Schwerin; +Cc: linux-omap, Steve Sakoman
Maximilian Schwerin <mvs@tigris.de> writes:
> From: Steve Sakoman <steve@sakoman.com>
Thanks for the patch.
Please add a descriptive changelog here.
Also, please Cc linux-arm-kernel@lists.infradead.org for all
upstream-bound patches.
Kevin
> Signed-off-by: Steve Sakoman <steve@sakoman.com>
> Signed-off-by: Maximilian Schwerin <mvs@tigris.de>
> ---
> arch/arm/mach-omap2/opp.c | 4 ++++
> 1 files changed, 4 insertions(+), 0 deletions(-)
>
> diff --git a/arch/arm/mach-omap2/opp.c b/arch/arm/mach-omap2/opp.c
> index 9262a6b..414f2ec 100644
> --- a/arch/arm/mach-omap2/opp.c
> +++ b/arch/arm/mach-omap2/opp.c
> @@ -62,6 +62,10 @@ int __init omap_init_opp_table(struct omap_opp_def *opp_def,
> __func__, i);
> return -EINVAL;
> }
> +
> + if ((strcmp(opp_def->hwmod_name,"iva") == 0) && !omap3_has_iva())
> + continue;
> +
> oh = omap_hwmod_lookup(opp_def->hwmod_name);
> if (!oh || !oh->od) {
> pr_warn("%s: no hwmod or odev for %s, [%d] "
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-03-14 17:09 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 13:48 [PATCH] omap: opp: test for iva before attempting to set iva opp Maximilian Schwerin
2012-03-14 17:09 ` Kevin Hilman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox