drm/nv50-/disp: use self as parent for subobjects
authorBen Skeggs <bskeggs@redhat.com>
Wed, 24 Apr 2013 08:04:22 +0000 (18:04 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Fri, 26 Apr 2013 05:38:08 +0000 (15:38 +1000)
Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/core/engine/disp/nv50.c
drivers/gpu/drm/nouveau/core/engine/disp/nvd0.c

index 608834449e52ba70cdd9b9596223d9cfc8332cd3..6a38402fa56c95cd01a98ba89d01e71dccf92fb3 100644 (file)
@@ -572,7 +572,8 @@ nv50_disp_base_ctor(struct nouveau_object *parent,
        priv->base.vblank->priv = priv;
        priv->base.vblank->enable = nv50_disp_base_vblank_enable;
        priv->base.vblank->disable = nv50_disp_base_vblank_disable;
-       return nouveau_ramht_new(parent, parent, 0x1000, 0, &base->ramht);
+       return nouveau_ramht_new(nv_object(base), nv_object(base), 0x1000, 0,
+                               &base->ramht);
 }
 
 static void
index 788dd34ccb54ae7997586149410808afa125e105..019eacd8a68fad2d7d36f4eb80584a25b3badbdf 100644 (file)
@@ -473,7 +473,8 @@ nvd0_disp_base_ctor(struct nouveau_object *parent,
        priv->base.vblank->enable = nvd0_disp_base_vblank_enable;
        priv->base.vblank->disable = nvd0_disp_base_vblank_disable;
 
-       return nouveau_ramht_new(parent, parent, 0x1000, 0, &base->ramht);
+       return nouveau_ramht_new(nv_object(base), nv_object(base), 0x1000, 0,
+                               &base->ramht);
 }
 
 static void