From: Viresh Kumar Date: Tue, 22 Sep 2015 16:35:31 +0000 (-0700) Subject: PM / OPP: of_property_count_u32_elems() can return errors X-Git-Tag: omap-for-v4.3/fixes-rc5~56^2^3~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=680168a58a9315e1301f4ebb062244470d4919b0;p=pandora-kernel.git PM / OPP: of_property_count_u32_elems() can return errors of_property_count_u32_elems() will never return 0, but a -ve error value of a positive count. And so the current !count check is wrong. Also, a missing "opp-microvolt" property isn't a problem and so we need to do of_find_property() separately to confirm that. Fixes: 274659029c9d (PM / OPP: Add support to parse "operating-points-v2" bindings) Signed-off-by: Viresh Kumar Reviewed-by: Stephen Boyd Signed-off-by: Rafael J. Wysocki --- Reading git-diff-tree failed