summaryrefslogtreecommitdiffstats
path: root/Kconfig
diff options
context:
space:
mode:
authorDouglas Anderson2018-09-07 00:49:05 +0200
committerAndy Gross2018-09-24 06:28:01 +0200
commitabc1c94471450de4fa085f5b1269837f97b1adc5 (patch)
tree13c02f560f57bb0c769433bb1827b3765d49011c /Kconfig
parentsoc: qcom: geni: Make version macros simpler (diff)
downloadkernel-qcow2-linux-abc1c94471450de4fa085f5b1269837f97b1adc5.tar.gz
kernel-qcow2-linux-abc1c94471450de4fa085f5b1269837f97b1adc5.tar.xz
kernel-qcow2-linux-abc1c94471450de4fa085f5b1269837f97b1adc5.zip
soc: qcom: geni: Don't ignore clk_round_rate() errors in geni_se_clk_tbl_get()
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: eddac5af0654 ("soc: qcom: Add GENI based QUP Wrapper driver") Signed-off-by: Douglas Anderson <dianders@chromium.org> Reviewed-by: Matthias Kaehlcke <mka@chromium.org> Signed-off-by: Andy Gross <andy.gross@linaro.org>
Diffstat (limited to 'Kconfig')
0 files changed, 0 insertions, 0 deletions