diff options
author | Bharat Nihalani <bnihalani@nvidia.com> | 2014-06-10 14:01:14 +0530 |
---|---|---|
committer | Mandar Padmawar <mpadmawar@nvidia.com> | 2014-06-11 06:55:37 -0700 |
commit | b7fad6671205fbb5bc21a4f8054b9ae8810207a6 (patch) | |
tree | 698b8e8009da511c549bef2c52a1f92751a9a3fc /drivers/cpuidle | |
parent | be4cca7d245353143855b59698f3a4c1d7e81580 (diff) |
cpuidle-denver: fix return value check
of_property_read_u32 returns 0 on SUCCESS. At one of the places,
the return value of this function was checked with non-zero value.
This is corrected with this change.
Bug 1517221
Change-Id: I909f0c86f60a287e336ee2adbd45e0cf6b338d57
Signed-off-by: Bharat Nihalani <bnihalani@nvidia.com>
Reviewed-on: http://git-master/r/421522
Reviewed-by: Mandar Padmawar <mpadmawar@nvidia.com>
Tested-by: Mandar Padmawar <mpadmawar@nvidia.com>
Diffstat (limited to 'drivers/cpuidle')
-rw-r--r-- | drivers/cpuidle/cpuidle-denver.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cpuidle/cpuidle-denver.c b/drivers/cpuidle/cpuidle-denver.c index 9456347ca4eb..c6c9b49cf299 100644 --- a/drivers/cpuidle/cpuidle-denver.c +++ b/drivers/cpuidle/cpuidle-denver.c @@ -85,7 +85,7 @@ static int __init denver_power_states_init(void) state->flags = CPUIDLE_FLAG_TIME_VALID; state->target_residency = prop; } - if (of_property_read_u32(child, "power", &prop) != 0) + if (of_property_read_u32(child, "power", &prop) == 0) state->exit_latency = prop; state->enter = denver_enter_c_state; |