summaryrefslogtreecommitdiff
path: root/drivers/pmdomain/qcom/cpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pmdomain/qcom/cpr.c')
-rw-r--r--drivers/pmdomain/qcom/cpr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pmdomain/qcom/cpr.c b/drivers/pmdomain/qcom/cpr.c
index e1fca65b80be..26a60a101e42 100644
--- a/drivers/pmdomain/qcom/cpr.c
+++ b/drivers/pmdomain/qcom/cpr.c
@@ -1052,7 +1052,7 @@ static unsigned long cpr_get_opp_hz_for_req(struct dev_pm_opp *ref,
of_parse_phandle(child_np, "required-opps", 0);
if (child_req_np == ref_np) {
- u64 rate;
+ u64 rate = 0;
of_property_read_u64(child_np, "opp-hz", &rate);
return (unsigned long) rate;