Skip to contentSkip to conversation

omap: opp: test for iva before attempting to set iva opp

PATCH In review Maximilian Schwerin 2 participants 2 messages Mar 14, 2012

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 omap: opp: test for iva before attempting to set iva opp

From: Steve Sakoman <[email protected]>

---
 arch/arm/mach-omap2/opp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/opp.c +4 -0
index 9262a6b..414f2ec 100644
@@ -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] "
Signature · 1 line
1.7.0.4
#1 lore raw
Quoted 1 line · Maximilian Schwerin

From: Steve Sakoman <[email protected]>

Thanks for the patch.

Please add a descriptive changelog here.

Also, please Cc [email protected] for all upstream-bound patches.

Kevin

Quoted 21 lines
---
 arch/arm/mach-omap2/opp.c |    4 ++++
 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/opp.c +4 -0
index 9262a6b..414f2ec 100644
@@ -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] "