]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/nvc0-/ltcg: Fix build on 32-bit platforms (v2)
authorRoy Spliet <r.spliet@student.tudelft.nl>
Sun, 14 Apr 2013 11:48:45 +0000 (13:48 +0200)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:37:46 +0000 (15:37 +1000)
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>
drivers/gpu/drm/nouveau/core/subdev/ltcg/nvc0.c

index a529563b5f8c5491714abffe4f549af38f146510..e4940fb166e8ead8280d7d4f4ee9659aa8b3d133 100644 (file)
@@ -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);
        }