|
@@ -157,7 +157,7 @@ static int vt8500_dclk_set_rate(struct clk_hw *hw, unsigned long rate,
|
|
|
divisor = parent_rate / rate;
|
|
divisor = parent_rate / rate;
|
|
|
|
|
|
|
|
/* If prate / rate would be decimal, incr the divisor */
|
|
/* If prate / rate would be decimal, incr the divisor */
|
|
|
- if (rate * divisor < *prate)
|
|
|
|
|
|
|
+ if (rate * divisor < parent_rate)
|
|
|
divisor++;
|
|
divisor++;
|
|
|
|
|
|
|
|
if (divisor == cdev->div_mask + 1)
|
|
if (divisor == cdev->div_mask + 1)
|