drm/nv20-nv30/gr: use parent as self for subobjects
[firefly-linux-kernel-4.4.55.git] / drivers / gpu / drm / nouveau / core / engine / graph / nv34.c
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;