]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
drm/nv20-nv30/gr: use parent as self for subobjects
authorBen Skeggs <bskeggs@redhat.com>
Wed, 24 Apr 2013 07:55:28 +0000 (17:55 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:38:06 +0000 (15:38 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/graph/nv20.c
drivers/gpu/drm/nouveau/core/engine/graph/nv25.c
drivers/gpu/drm/nouveau/core/engine/graph/nv2a.c
drivers/gpu/drm/nouveau/core/engine/graph/nv30.c
drivers/gpu/drm/nouveau/core/engine/graph/nv34.c
drivers/gpu/drm/nouveau/core/engine/graph/nv35.c

index 0607b9801748481e16d40ea2103d4855bb627f47..b24559315903f56b23dad5df1aa3cf95f9572882 100644 (file)
@@ -254,7 +254,7 @@ nv20_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;
index b2b650dd8b282f81622f09e59428035e0cbf0d2f..7a80d005a9741afea220be465a860f46aaedfeef 100644 (file)
@@ -142,7 +142,7 @@ nv25_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;
index 700462fa0ae0271cd4c029c950a9bae812ecd3b9..3e1f32ee43d4c4c902873de190a3de41916026e4 100644 (file)
@@ -109,7 +109,7 @@ nv2a_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;
index cedadaa92d3f4ffabb7887c4dcfb232788517b16..e451db32e92a6ecb05e1e61716a116bcfc8afbac 100644 (file)
@@ -143,7 +143,7 @@ nv30_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;
index 273f6320027b76b5857f98576b8f8aa9e1f54d8e..9385ac7b44a493970c32a162913494c0f8f1fde0 100644 (file)
@@ -143,7 +143,7 @@ nv34_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;
index f40ee2116ee1629003f93afcbfcd3ea86492c826..9ce84b73f86a21cf0e9277e998db271965b386db 100644 (file)
@@ -141,7 +141,7 @@ nv35_graph_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
        if (ret)
                return ret;
 
-       ret = nouveau_gpuobj_new(parent, NULL, 32 * 4, 16,
+       ret = nouveau_gpuobj_new(nv_object(priv), NULL, 32 * 4, 16,
                                 NVOBJ_FLAG_ZERO_ALLOC, &priv->ctxtab);
        if (ret)
                return ret;