diff options
author | Chunyan Zhang <[email protected]> | 2020-05-19 11:00:36 +0800 |
---|---|---|
committer | Stephen Boyd <[email protected]> | 2020-05-26 20:14:56 -0700 |
commit | c2f30986d418f26abefc2eec90ebf06716c970d2 (patch) | |
tree | 01913a1efc39fa3fc2a5a0864d063e2c87242ee5 /scripts/gdb/linux/tasks.py | |
parent | 3aff9b5492475621e13ca83bdbf3dc8b823fc5a3 (diff) |
clk: sprd: return correct type of value for _sprd_pll_recalc_rate
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: 3e37b005580b ("clk: sprd: add adjustable pll support")
Signed-off-by: Chunyan Zhang <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Reviewed-by: Baolin Wang <[email protected]>
Signed-off-by: Stephen Boyd <[email protected]>
Diffstat (limited to 'scripts/gdb/linux/tasks.py')
0 files changed, 0 insertions, 0 deletions