diff options
Diffstat (limited to 'drivers/gpu/drm/nouveau/nv04_instmem.c')
-rw-r--r-- | drivers/gpu/drm/nouveau/nv04_instmem.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/drivers/gpu/drm/nouveau/nv04_instmem.c b/drivers/gpu/drm/nouveau/nv04_instmem.c index a3b9563a6f60..17af702d6ddc 100644 --- a/drivers/gpu/drm/nouveau/nv04_instmem.c +++ b/drivers/gpu/drm/nouveau/nv04_instmem.c | |||
@@ -106,7 +106,7 @@ int nv04_instmem_init(struct drm_device *dev) | |||
106 | { | 106 | { |
107 | struct drm_nouveau_private *dev_priv = dev->dev_private; | 107 | struct drm_nouveau_private *dev_priv = dev->dev_private; |
108 | uint32_t offset; | 108 | uint32_t offset; |
109 | int ret = 0; | 109 | int ret; |
110 | 110 | ||
111 | nv04_instmem_determine_amount(dev); | 111 | nv04_instmem_determine_amount(dev); |
112 | nv04_instmem_configure_fixed_tables(dev); | 112 | nv04_instmem_configure_fixed_tables(dev); |
@@ -129,14 +129,14 @@ int nv04_instmem_init(struct drm_device *dev) | |||
129 | offset = 0x40000; | 129 | offset = 0x40000; |
130 | } | 130 | } |
131 | 131 | ||
132 | ret = nouveau_mem_init_heap(&dev_priv->ramin_heap, | 132 | ret = drm_mm_init(&dev_priv->ramin_heap, offset, |
133 | offset, dev_priv->ramin_rsvd_vram - offset); | 133 | dev_priv->ramin_rsvd_vram - offset); |
134 | if (ret) { | 134 | if (ret) { |
135 | dev_priv->ramin_heap = NULL; | 135 | NV_ERROR(dev, "Failed to init RAMIN heap: %d\n", ret); |
136 | NV_ERROR(dev, "Failed to init RAMIN heap\n"); | 136 | return ret; |
137 | } | 137 | } |
138 | 138 | ||
139 | return ret; | 139 | return 0; |
140 | } | 140 | } |
141 | 141 | ||
142 | void | 142 | void |