diff options
author | George Stark <[email protected]> | 2024-04-25 20:12:52 +0300 |
---|---|---|
committer | Uwe Kleine-König <[email protected]> | 2024-04-30 18:57:08 +0200 |
commit | 3e551115aee079931b82e1ec78c05f3d5033473f (patch) | |
tree | ba150f6cfa88b306603e9d9d47145788c90c8807 /tools/testing/selftests/bpf/progs/test_autoload.c | |
parent | 6b2d60a543c4ffbb6bd9703a2714b2d5fbfc5781 (diff) |
pwm: meson: Add check for error from clk_round_rate()
clk_round_rate() can return not only zero if requested frequency can not
be provided but also negative error code so add check for it too.
Also change type of variable holding clk_round_rate() result from
unsigned long to long. It's safe due to clk_round_rate() returns long.
Fixes: 329db102a26d ("pwm: meson: make full use of common clock framework")
Signed-off-by: Dmitry Rokosov <[email protected]>
Signed-off-by: George Stark <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Uwe Kleine-König <[email protected]>
Diffstat (limited to 'tools/testing/selftests/bpf/progs/test_autoload.c')
0 files changed, 0 insertions, 0 deletions