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:
Elaine Zhang
2024-08-02 17:19:20 +08:00
committed by Tao Huang
parent 1ce843d99c
commit a169eac698

View File

@@ -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)