Message ID | 1266308837-23262-2-git-send-email-nm@ti.com (mailing list archive) |
---|---|
State | Accepted |
Delegated to: | Kevin Hilman |
Headers | show |
diff --git a/arch/arm/mach-omap2/resource34xx.c b/arch/arm/mach-omap2/resource34xx.c index 3604a38..ecc3c68 100644 --- a/arch/arm/mach-omap2/resource34xx.c +++ b/arch/arm/mach-omap2/resource34xx.c @@ -177,7 +177,7 @@ static int __deprecated opp_to_freq(unsigned long *freq, enum opp_t opp_type, BUG_ON(!freq || opp_type >= OPP_TYPES_MAX); opp = opp_find_by_opp_id(opp_type, opp_id); - if (!opp) + if (IS_ERR(opp)) return -EINVAL; *freq = opp_get_freq(opp);