drm/nouveau/core: switch to device pri macros
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
parent
dd64694208
commit
94bab10223
1 changed files with 4 additions and 2 deletions
|
@ -64,9 +64,11 @@ _nvkm_subdev_init(struct nvkm_object *object)
|
||||||
int
|
int
|
||||||
nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend)
|
nvkm_subdev_fini(struct nvkm_subdev *subdev, bool suspend)
|
||||||
{
|
{
|
||||||
|
struct nvkm_device *device = subdev->device;
|
||||||
|
|
||||||
if (subdev->unit) {
|
if (subdev->unit) {
|
||||||
nv_mask(subdev, 0x000200, subdev->unit, 0x00000000);
|
nvkm_mask(device, 0x000200, subdev->unit, 0x00000000);
|
||||||
nv_mask(subdev, 0x000200, subdev->unit, subdev->unit);
|
nvkm_mask(device, 0x000200, subdev->unit, subdev->unit);
|
||||||
}
|
}
|
||||||
|
|
||||||
return nvkm_object_fini(&subdev->object, suspend);
|
return nvkm_object_fini(&subdev->object, suspend);
|
||||||
|
|
Loading…
Add table
Reference in a new issue