drm/nouveau/core: switch to device pri macros
authorBen Skeggs <bskeggs@redhat.com>
Thu, 20 Aug 2015 04:54:08 +0000 (14:54 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 28 Aug 2015 02:40:13 +0000 (12:40 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nvkm/core/subdev.c

index b96cb2cca55e36581ee1fce18c7ac32c7b29bd33..fd1a94c5bf38513613e69f06f59e751c87942e16 100644 (file)
@@ -64,9 +64,11 @@ _nvkm_subdev_init(struct nvkm_object *object)
 int
 nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend)
 {
+       struct nvkm_device *device = subdev->device;
+
        if (subdev->unit) {
-               nv_mask(subdev, 0x000200, subdev->unit, 0x00000000);
-               nv_mask(subdev, 0x000200, subdev->unit, subdev->unit);
+               nvkm_mask(device, 0x000200, subdev->unit, 0x00000000);
+               nvkm_mask(device, 0x000200, subdev->unit, subdev->unit);
        }
 
        return nvkm_object_fini(&subdev->object, suspend);