summary refs log tree commit diff
path: root/drivers/clk/clk-clps711x.c
diff options
context:
space:
mode:
authorStefan Wahren <stefan.wahren@i2se.com>2022-06-25 10:36:43 +0200
committerStephen Boyd <sboyd@kernel.org>2022-08-22 19:17:12 -0700
commit35f73cca1cecda0c1f8bb7d8be4ce5cd2d46ae8c (patch)
treece47b90a5119c06c1401e342e5c36c73ff238527 /drivers/clk/clk-clps711x.c
parent4b592061f7b3971c70e8b72fc42aaead47c24701 (diff)
downloadlinux-35f73cca1cecda0c1f8bb7d8be4ce5cd2d46ae8c.tar.gz
clk: bcm: rpi: Fix error handling of raspberrypi_fw_get_rate
The function raspberrypi_fw_get_rate (e.g. used for the recalc_rate
hook) can fail to get the clock rate from the firmware. In this case
we cannot return a signed error value, which would be casted to
unsigned long. Fix this by returning 0 instead.

Signed-off-by: Stefan Wahren <stefan.wahren@i2se.com>
Link: https://lore.kernel.org/r/20220625083643.4012-1-stefan.wahren@i2se.com
Fixes: 4e85e535e6cc ("clk: bcm283x: add driver interfacing with Raspberry Pi's firmware")
Acked-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: Stephen Boyd <sboyd@kernel.org>
Diffstat (limited to 'drivers/clk/clk-clps711x.c')
0 files changed, 0 insertions, 0 deletions