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

Commit 64ee7e84 authored by Satya Rama Aditya Pinapala's avatar Satya Rama Aditya Pinapala
Browse files

disp: msm: dsi: call pll set rate directly instead of a function pointer cb



The clock framework nulls the clock hardware init data, after a variant
of clk_register is called on the clk_hw pointer.  This results in a null
pointer dereference when we try to call set rate in the PLL prepare
function. The call can be a direct call to the function rather than
trying to access through the init_data pointer of the clk_hw.

Change-Id: I3613eea915d4f5620d7f0258ae391ad2ac624148
Signed-off-by: default avatarSatya Rama Aditya Pinapala <psraditya30@codeaurora.org>
parent da7839e1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1391,7 +1391,7 @@ static int vco_5nm_prepare(struct clk_hw *hw)

	if ((pll->vco_cached_rate != 0) &&
	    (pll->vco_cached_rate == clk_hw_get_rate(hw))) {
		rc = hw->init->ops->set_rate(hw, pll->vco_cached_rate,
		rc = vco_5nm_set_rate(hw, pll->vco_cached_rate,
				pll->vco_cached_rate);
		if (rc) {
			pr_err("pll(%d) set_rate failed, rc=%d\n",