diff options
| author | Viresh Kumar <[email protected]> | 2015-09-22 16:35:31 +0000 |
|---|---|---|
| committer | Rafael J. Wysocki <[email protected]> | 2015-09-25 00:35:54 +0000 |
| commit | 680168a58a9315e1301f4ebb062244470d4919b0 (patch) | |
| tree | b17bc6c721c07ce9bd3136f07df91b52c3b826ec /net/switchdev/switchdev.c | |
| parent | Linux 4.3-rc2 (diff) | |
| download | kernel-680168a58a9315e1301f4ebb062244470d4919b0.tar.gz kernel-680168a58a9315e1301f4ebb062244470d4919b0.zip | |
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 <[email protected]>
Reviewed-by: Stephen Boyd <[email protected]>
Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/switchdev/switchdev.c')
0 files changed, 0 insertions, 0 deletions
