summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRoy Spliet <r.spliet@student.tudelft.nl>2013-04-14 15:48:45 +0400
committerBen Skeggs <bskeggs@redhat.com>2013-04-26 09:37:46 +0400
commit8cb303a85b5782c337fe75d2525ca1638b30f057 (patch)
treef47991a427eab5c76cfb9ca2f7860bd0a7059084
parentcade2413e940763cd99e9febba873fe1899d98cb (diff)
downloadlinux-8cb303a85b5782c337fe75d2525ca1638b30f057.tar.xz
drm/nvc0-/ltcg: Fix build on 32-bit platforms (v2)
v2: read, don't assume.. *puts on brown paper bag* Signed-off-by: Roy Spliet <r.spliet@student.tudelft.nl> Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
-rw-r--r--drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c b/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c
index a529563b5f8c..e4940fb166e8 100644
--- a/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c
+++ b/drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c
@@ -151,7 +151,7 @@ nvc0_ltcg_init_tag_ram(struct nouveau_fb *pfb, struct nvc0_ltcg_priv *priv)
u64 tag_base = (priv->tag_ram->offset << 12) + tag_margin;
tag_base += tag_align - 1;
- tag_base /= tag_align;
+ ret = do_div(tag_base, tag_align);
nv_wr32(priv, 0x17e8d4, tag_base);
}