1
0
Fork 0
alistair23-linux/drivers/clk/sprd
Chunyan Zhang c66e72f172 clk: sprd: return correct type of value for _sprd_pll_recalc_rate
[ Upstream commit c2f30986d4 ]

The function _sprd_pll_recalc_rate() defines return value to unsigned
long, but it would return a negative value when malloc fail, changing
to return its parent_rate makes more sense, since if the callback
.recalc_rate() is not set, the framework returns the parent_rate as
well.

Fixes: 3e37b00558 ("clk: sprd: add adjustable pll support")
Signed-off-by: Chunyan Zhang <chunyan.zhang@unisoc.com>
Link: https://lkml.kernel.org/r/20200519030036.1785-2-zhang.lyra@gmail.com
Reviewed-by: Baolin Wang <baolin.wang7@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:35 +02:00
..
Kconfig clk: sprd: Select REGMAP_MMIO to avoid compile errors 2019-07-22 14:54:26 -07:00
Makefile treewide: Add SPDX license identifier - Makefile/Kconfig 2019-05-21 10:50:46 +02:00
common.c clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle() 2020-01-23 08:23:00 +01:00
common.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
composite.c
composite.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
div.c
div.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
gate.c
gate.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
mux.c
mux.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
pll.c clk: sprd: return correct type of value for _sprd_pll_recalc_rate 2020-06-24 17:50:35 +02:00
pll.h clk: sprd: Use the correct style for SPDX License Identifier 2019-05-01 13:01:23 -07:00
sc9860-clk.c clk: sprd: Add check for return value of sprd_clk_regmap_init() 2019-06-27 15:08:29 -07:00