mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-11 15:40:50 +00:00
clk: tegra: use max divider if divider overflows
When requesting a rate less than the minimum clock rate for a divider, use the maximum divider value instead of bailing out with an error. This matches the behavior of the generic clock divider. Signed-off-by: Andrew Bresticker <abrestic@chromium.org>
This commit is contained in:
parent
88b4bd7071
commit
3de5bdfb4c
@ -59,7 +59,7 @@ static int get_div(struct tegra_clk_frac_div *divider, unsigned long rate,
|
||||
return 0;
|
||||
|
||||
if (divider_ux1 > get_max_div(divider))
|
||||
return -EINVAL;
|
||||
return get_max_div(divider);
|
||||
|
||||
return divider_ux1;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user