|
@@ -107,7 +107,7 @@ static unsigned long ccu_nkmp_recalc_rate(struct clk_hw *hw,
|
|
p = reg >> nkmp->p.shift;
|
|
p = reg >> nkmp->p.shift;
|
|
p &= (1 << nkmp->p.width) - 1;
|
|
p &= (1 << nkmp->p.width) - 1;
|
|
|
|
|
|
- return parent_rate * n * k >> p / m;
|
|
|
|
|
|
+ return (parent_rate * n * k >> p) / m;
|
|
}
|
|
}
|
|
|
|
|
|
static long ccu_nkmp_round_rate(struct clk_hw *hw, unsigned long rate,
|
|
static long ccu_nkmp_round_rate(struct clk_hw *hw, unsigned long rate,
|