drm/nouveau: port all engines to new engine module format
[deliverable/linux.git] / drivers / gpu / drm / nouveau / core / subdev / instmem / nv04.c
index f44f0f096689c63cab4b55860c45345655278074..ba4d28b50368acf8a4b13f0793bd799de4e36d6d 100644 (file)
@@ -139,8 +139,7 @@ nv04_instmem_ctor(struct nouveau_object *parent, struct nouveau_object *engine,
                return ret;
 
        /* 0x10000-0x18000: reserve for RAMHT */
-       ret = nouveau_gpuobj_new(parent, NULL, 0x08000, 0,
-                                NVOBJ_FLAG_ZERO_ALLOC, &priv->ramht);
+       ret = nouveau_ramht_new(parent, NULL, 0x08000, 0, &priv->ramht);
        if (ret)
                return ret;
 
@@ -165,7 +164,7 @@ nv04_instmem_dtor(struct nouveau_object *object)
        struct nv04_instmem_priv *priv = (void *)object;
        nouveau_gpuobj_ref(NULL, &priv->ramfc);
        nouveau_gpuobj_ref(NULL, &priv->ramro);
-       nouveau_gpuobj_ref(NULL, &priv->ramht);
+       nouveau_ramht_ref(NULL, &priv->ramht);
        nouveau_gpuobj_ref(NULL, &priv->vbios);
        nouveau_mm_fini(&priv->heap);
        if (priv->iomem)
This page took 0.041646 seconds and 5 git commands to generate.