mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-07 03:15:31 +09:00
clk: fractional-divider: Fixed check parent rate
Fixes: e6dfeb296d ("Revert "clk: fractional-divider: check parent rate only if flag is set"")
Signed-off-by: Elaine Zhang <zhangqing@rock-chips.com>
Change-Id: Ia287357af26437f525c74104b4fd5b20f4ec2f16
This commit is contained in:
@@ -134,7 +134,7 @@ static long clk_fd_round_rate(struct clk_hw *hw, unsigned long rate,
|
||||
unsigned long m, n;
|
||||
u64 ret;
|
||||
|
||||
if (!rate && rate >= *parent_rate)
|
||||
if (!rate || rate >= *parent_rate)
|
||||
return *parent_rate;
|
||||
|
||||
if (fd->approximation)
|
||||
|
||||
Reference in New Issue
Block a user