omap: opp: test for iva before attempting to set iva opp
Subsystems (3)
PATCH 1/1 omap: opp: test for iva before attempting to set iva opp
From: Steve Sakoman <[email protected]>
Signed-off-by Steve Sakoman <[email protected]>
Signed-off-by Maximilian Schwerin <[email protected]>
--- arch/arm/mach-omap2/opp.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)
arch/arm/mach-omap2/opp.c +4 -0
@@ -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
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
Signed-off-by Steve Sakoman <[email protected]>Signed-off-by Maximilian Schwerin <[email protected]>--- arch/arm/mach-omap2/opp.c | 4 ++++ 1 files changed, 4 insertions(+), 0 deletions(-)arch/arm/mach-omap2/opp.c +4
-0@@ -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] "