clk: qcom: Fix return value check for round rate during clock registration

Fix return value check for round rate call during
clock registration leading to function call failure.

Change-Id: I99ac293f34090ee4905c44474f4e7b491e635103
Signed-off-by: Taniya Das <tdas@codeaurora.org>
This commit is contained in:
Taniya Das
2019-03-12 03:45:03 -07:00
committed by Gerrit - the friendly Code Review server
parent ce471b12a9
commit 7e0561072d

View File

@@ -4619,7 +4619,7 @@ static void clk_populate_clock_opp_table(struct device_node *np,
for (n = 0; ; n++) {
rrate = clk_hw_round_rate(hw, rate + 1);
if (!rate) {
if (!rrate) {
pr_err("clk_round_rate failed for %s\n",
core->name);
goto err_derive_device_list;