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

index 055bc2141f6bc89851499adbb8be8642e8e99f72..c7d981cad8226f8853375888056aa18ab7af6d21 100644 (file)
@@ -61,14 +61,15 @@ static int
 g98_msvld_init(struct nvkm_object *object)
 {
        struct nvkm_falcon *msvld = (void *)object;
+       struct nvkm_device *device = msvld->engine.subdev.device;
        int ret;
 
        ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(msvld, 0x084010, 0x0000ffd2);
-       nv_wr32(msvld, 0x08401c, 0x0000fff2);
+       nvkm_wr32(device, 0x084010, 0x0000ffd2);
+       nvkm_wr32(device, 0x08401c, 0x0000fff2);
        return 0;
 }
 
index 0730198daea79b1d6368f4f43310d147af4fc9a7..156ebcf22a27f296ba48e1efc776184f8e7d766a 100644 (file)
@@ -59,14 +59,15 @@ static int
 gf100_msvld_init(struct nvkm_object *object)
 {
        struct nvkm_falcon *msvld = (void *)object;
+       struct nvkm_device *device = msvld->engine.subdev.device;
        int ret;
 
        ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(msvld, 0x084010, 0x0000fff2);
-       nv_wr32(msvld, 0x08401c, 0x0000fff2);
+       nvkm_wr32(device, 0x084010, 0x0000fff2);
+       nvkm_wr32(device, 0x08401c, 0x0000fff2);
        return 0;
 }
 
index e19ebfdaae6a3b3278155dcefe68b23487140c91..870e61465b07fe785f8e25711afe3d7f5920d944 100644 (file)
@@ -59,14 +59,15 @@ static int
 gk104_msvld_init(struct nvkm_object *object)
 {
        struct nvkm_falcon *msvld = (void *)object;
+       struct nvkm_device *device = msvld->engine.subdev.device;
        int ret;
 
        ret = nvkm_falcon_init(msvld);
        if (ret)
                return ret;
 
-       nv_wr32(msvld, 0x084010, 0x0000fff2);
-       nv_wr32(msvld, 0x08401c, 0x0000fff2);
+       nvkm_wr32(device, 0x084010, 0x0000fff2);
+       nvkm_wr32(device, 0x08401c, 0x0000fff2);
        return 0;
 }