linux-arm-kernel.lists.infradead.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] OMAP3: OPP: Test for IVA subsystem before attempting to add IVA OPP
@ 2012-03-14 17:38 Maximilian Schwerin
  2012-03-14 21:15 ` Kevin Hilman
  0 siblings, 1 reply; 12+ messages in thread
From: Maximilian Schwerin @ 2012-03-14 17:38 UTC (permalink / raw)
  To: linux-arm-kernel

From: Steve Sakoman <steve@sakoman.com>

Don't try to add IVA OPPs for OMAP3 versions not containing an IVA
subsystem, as this would make omap_init_opp_table fail.

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] 12+ messages in thread

end of thread, other threads:[~2012-03-20  0:15 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-14 17:38 [PATCH] OMAP3: OPP: Test for IVA subsystem before attempting to add IVA OPP Maximilian Schwerin
2012-03-14 21:15 ` Kevin Hilman
2012-03-14 21:35   ` Menon, Nishanth
2012-03-14 22:06     ` Kevin Hilman
2012-03-16  9:26       ` AW: " Maximilian Schwerin
2012-03-16 14:20         ` Nishanth Menon
2012-03-16 15:47           ` AW: " Maximilian Schwerin
2012-03-16 15:57             ` Menon, Nishanth
2012-03-16 16:04           ` Steve Sakoman
2012-03-19 21:27           ` Kevin Hilman
2012-03-19 21:29             ` Menon, Nishanth
2012-03-20  0:15               ` Kevin Hilman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).