Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 94bab102 authored by Ben Skeggs's avatar Ben Skeggs
Browse files

drm/nouveau/core: switch to device pri macros



Signed-off-by: default avatarBen Skeggs <bskeggs@redhat.com>
parent dd646942
Loading
Loading
Loading
Loading
+4 −2
Original line number Diff line number Diff line
@@ -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);