android_kernel_xiaomi_sm7250/drivers/clk/sprd
Chunyan Zhang 66820e4638 clk: sprd: return correct type of value for _sprd_pll_recalc_rate
[ Upstream commit c2f30986d418f26abefc2eec90ebf06716c970d2 ]

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-25 15:33:00 +02:00
..
common.c clk: sprd: Use IS_ERR() to validate the return value of syscon_regmap_lookup_by_phandle() 2020-01-23 08:21:39 +01:00
common.h
composite.c
composite.h
div.c
div.h
gate.c
gate.h
Kconfig clk: sprd: Select REGMAP_MMIO to avoid compile errors 2019-08-25 10:47:52 +02:00
Makefile
mux.c
mux.h
pll.c clk: sprd: return correct type of value for _sprd_pll_recalc_rate 2020-06-25 15:33:00 +02:00
pll.h
sc9860-clk.c clk: sprd: Add check for return value of sprd_clk_regmap_init() 2019-08-06 19:06:49 +02:00