mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-08-05 08:43:31 +00:00
![]() The function clk_round_rate() is defined to return a "long", not an
"unsigned long". That's because it might return a negative error
code. Change the call in geni_se_clk_tbl_get() to check for errors.
While we're at it, get rid of a useless init of "freq".
NOTE: overall the idea that we should iterate over clk_round_rate() to
try to reconstruct a table already present in the clock driver is
questionable. Specifically:
- This method relies on "clk_round_rate()" rounding up.
- This method only works if the table is sorted and has no duplicates.
...this patch doesn't try to fix those problems, it just makes the
error handling more correct.
Fixes:
|
||
---|---|---|
.. | ||
apr.c | ||
cmd-db.c | ||
glink_ssr.c | ||
Kconfig | ||
llcc-sdm845.c | ||
llcc-slice.c | ||
Makefile | ||
mdt_loader.c | ||
qcom-geni-se.c | ||
qcom_gsbi.c | ||
qmi_encdec.c | ||
qmi_interface.c | ||
rmtfs_mem.c | ||
rpmh-internal.h | ||
rpmh-rsc.c | ||
rpmh.c | ||
smd-rpm.c | ||
smem.c | ||
smem_state.c | ||
smp2p.c | ||
smsm.c | ||
spm.c | ||
trace-rpmh.h | ||
wcnss_ctrl.c |