drm/nouveau/volt: use kernel's 64-bit signed division function
authorAlexandre Courbot <acourbot@nvidia.com>
Fri, 16 Sep 2016 09:09:12 +0000 (18:09 +0900)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 12 Oct 2016 07:29:30 +0000 (17:29 +1000)
commit321c258e9192377cff2cb34b9d12fca0ee60b13f
tree056ac7053c4746d48f21af5724a62f11fbd898a4
parentd6c6035af7ccadd647832681d6b2a53d4c8705de
drm/nouveau/volt: use kernel's 64-bit signed division function

Doing direct 64 bit divisions in kernel code leads to references to
undefined symbols on 32 bit architectures. Replace such divisions with
calls to div64_s64 to make the module usable on 32 bit archs.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Reviewed-by: Karol Herbst <karolherbst@gmail.com>
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/subdev/volt/base.c