Skip to content

Commit

Permalink
drm/nouveau: fix 32-bit build
Browse files Browse the repository at this point in the history
This uses the proper div macro.

Signed-off-by: Dave Airlie <airlied@redhat.com>
  • Loading branch information
Dave Airlie committed Nov 9, 2013
1 parent 9191526 commit 98706ea
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/gpu/drm/nouveau/core/subdev/clock/nv50.c
Original file line number Diff line number Diff line change
Expand Up @@ -197,7 +197,7 @@ nv50_clock_read(struct nouveau_clock *clk, enum nv_clk_src src)
case nv_clk_src_href:
return 100000; /* PCIE reference clock */
case nv_clk_src_hclk:
return (u64)clk->read(clk, nv_clk_src_href) * 27778 / 10000;
return div_u64((u64)clk->read(clk, nv_clk_src_href) * 27778, 10000);
case nv_clk_src_hclkm3:
return clk->read(clk, nv_clk_src_hclk) * 3;
case nv_clk_src_hclkm3d2:
Expand Down

0 comments on commit 98706ea

Please sign in to comment.