提交 8cb87c04 编写于 作者: N Nicolas Pitre

nouveau/nvkm/subdev/clk/gk20a.c: fix wrong do_div() usage

do_div() must only be used with a u64 dividend.
Signed-off-by: NNicolas Pitre <nico@linaro.org>
上级 8005c49d
......@@ -141,9 +141,8 @@ gk20a_pllg_calc_rate(struct gk20a_clk *clk)
rate = clk->parent_rate * clk->n;
divider = clk->m * pl_to_div[clk->pl];
do_div(rate, divider);
return rate / 2;
return rate / divider / 2;
}
static int
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册