diff options
author | Viresh Kumar <viresh.kumar@linaro.org> | 2018-11-23 10:36:07 +0530 |
---|---|---|
committer | Viresh Kumar <viresh.kumar@linaro.org> | 2018-11-23 10:47:21 +0530 |
commit | 3e27c79c4b121a64e85f26ab8957e5d0a09ff28e (patch) | |
tree | b647329140ca9360b39c1a6fbe0fea9b3fb7bec0 /drivers/opp/core.c | |
parent | bf21c6e455539a495ce6d2877da2f9e364a89062 (diff) |
OPP: Fix parsing of multiple phandles in "operating-points-v2" property
We currently return error if more than one phandle is present in the
"operating-points-v2" property, which is incorrect. We only want to
check the count of phandles here and set index to 0 if only one phandle
is present.
Fix it.
Fixes: 5ed4cecd75e9 ("OPP: Pass OPP table to _of_add_opp_table_v{1|2}()")
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Diffstat (limited to 'drivers/opp/core.c')
0 files changed, 0 insertions, 0 deletions