drm/nouveau/msppp: switch to device pri macros

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
This commit is contained in:
Ben Skeggs 2015-08-20 14:54:10 +10:00
parent 54118c74fb
commit 320ca25131
2 changed files with 6 additions and 4 deletions

View File

@ -60,14 +60,15 @@ static int
g98_msppp_init(struct nvkm_object *object)
{
struct nvkm_falcon *msppp = (void *)object;
struct nvkm_device *device = msppp->engine.subdev.device;
int ret;
ret = nvkm_falcon_init(msppp);
if (ret)
return ret;
nv_wr32(msppp, 0x086010, 0x0000ffd2);
nv_wr32(msppp, 0x08601c, 0x0000fff2);
nvkm_wr32(device, 0x086010, 0x0000ffd2);
nvkm_wr32(device, 0x08601c, 0x0000fff2);
return 0;
}

View File

@ -59,14 +59,15 @@ static int
gf100_msppp_init(struct nvkm_object *object)
{
struct nvkm_falcon *msppp = (void *)object;
struct nvkm_device *device = msppp->engine.subdev.device;
int ret;
ret = nvkm_falcon_init(msppp);
if (ret)
return ret;
nv_wr32(msppp, 0x086010, 0x0000fff2);
nv_wr32(msppp, 0x08601c, 0x0000fff2);
nvkm_wr32(device, 0x086010, 0x0000fff2);
nvkm_wr32(device, 0x08601c, 0x0000fff2);
return 0;
}