Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

clk: qcom: lcc-ipq806x: Fixup overriding val in regmap_read call

Drop the assignment of regmap_read return code to val, so the code checks
the value read.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>

authored by

Axel Lin and committed by
Stephen Boyd
74a484ce 42134fa2

+1 -1
+1 -1
drivers/clk/qcom/lcc-ipq806x.c
··· 443 443 return PTR_ERR(regmap); 444 444 445 445 /* Configure the rate of PLL4 if the bootloader hasn't already */ 446 - val = regmap_read(regmap, 0x0, &val); 446 + regmap_read(regmap, 0x0, &val); 447 447 if (!val) 448 448 clk_pll_configure_sr(&pll4, regmap, &pll4_config, true); 449 449 /* Enable PLL4 source on the LPASS Primary PLL Mux */