Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 89d7fec3 authored by Vicky Wallace's avatar Vicky Wallace
Browse files

clk: qcom: Fix the rate check during OPP population



The function checks for 'rate' instead 'rrate'. 'rate' is 0 as
initial value therefore OPP populate function returns an error
at the beginning of the for loop.

Change-Id: Ibe82568f3fa9d727faee379eebb37ed40e239d4e
Signed-off-by: default avatarVicky Wallace <vwallace@codeaurora.org>
parent c9ab2da3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
/*
 * Copyright (C) 2010-2011 Canonical Ltd <jeremy.kerr@canonical.com>
 * Copyright (C) 2011-2012 Linaro Ltd <mturquette@linaro.org>
 * Copyright (c) 2017, The Linux Foundation. All rights reserved.
 * Copyright (c) 2017-2018, The Linux Foundation. All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License version 2 as
@@ -3751,7 +3751,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;