Message ID | 1279953753-1377-1-git-send-email-thara@ti.com (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/arch/arm/plat-omap/opp.c b/arch/arm/plat-omap/opp.c index 0273497..e81bb95 100644 --- a/arch/arm/plat-omap/opp.c +++ b/arch/arm/plat-omap/opp.c @@ -333,7 +333,7 @@ int opp_add(const struct omap_opp_def *opp_def) return -EINVAL; } oh = omap_hwmod_lookup(opp_def->hwmod_name); - if (!oh) { + if (!oh || !oh->od) { pr_warn("%s: no hwmod for %s, cannot add OPPs.\n", __func__, opp_def->hwmod_name); return -EINVAL;