On 10/01/2013 08:33 AM, Sudeep KarkadaNagesha wrote: > From: Sudeep KarkadaNagesha <sudeep.karkadanagesha@xxxxxxx> > > Since the OPPs can be specified either through 'operating-points' > as tuples or through 'operating-points-phandle' as phandle to the > node containing tuples, we need to check for both the properties. > > Cc: "Rafael J. Wysocki" <rjw@xxxxxxx> > Cc: Viresh Kumar <viresh.kumar@xxxxxxxxxx> > Signed-off-by: Sudeep KarkadaNagesha <sudeep.karkadanagesha@xxxxxxx> > --- > drivers/cpufreq/arm_big_little_dt.c | 3 ++- > 1 file changed, 2 insertions(+), 1 deletion(-) > > diff --git a/drivers/cpufreq/arm_big_little_dt.c b/drivers/cpufreq/arm_big_little_dt.c > index 480c0bd..b03d4fe 100644 > --- a/drivers/cpufreq/arm_big_little_dt.c > +++ b/drivers/cpufreq/arm_big_little_dt.c > @@ -35,7 +35,8 @@ static struct device_node *get_cpu_node_with_valid_op(int cpu) > { > struct device_node *np = of_cpu_device_node_get(cpu); > > - if (!of_get_property(np, "operating-points", NULL)) { > + if (!of_get_property(np, "operating-points", NULL) && > + !of_get_property(np, "operating-points-phandle", NULL)) { > of_node_put(np); > np = NULL; > } > generated checkpatch --strict warning: CHECK: Alignment should match open parenthesis #28: FILE: drivers/cpufreq/arm_big_little_dt.c:39: + if (!of_get_property(np, "operating-points", NULL) && + !of_get_property(np, "operating-points-phandle", NULL)) { otherwise, Reviewed-by: Nishanth Menon <nm@xxxxxx> -- Regards, Nishanth Menon -- To unsubscribe from this list: send the line "unsubscribe devicetree" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html