summaryrefslogtreecommitdiff
path: root/shared-core
diff options
context:
space:
mode:
authorBen Skeggs <skeggsb@gmail.com>2007-07-13 02:18:59 +1000
committerBen Skeggs <skeggsb@gmail.com>2007-07-13 02:18:59 +1000
commit851c950d988e5a47fa6add71427e5ef8d4dcf231 (patch)
treea7bc37feb8a8d05a9ce62eabf8709ce60622b59a /shared-core
parentaf317f1cc7136dbf03b39ced64c42202703c5066 (diff)
nouveau: unbreak AGP
Diffstat (limited to 'shared-core')
-rw-r--r--shared-core/nouveau_mem.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/shared-core/nouveau_mem.c b/shared-core/nouveau_mem.c
index 9bfa8365..79d1bb87 100644
--- a/shared-core/nouveau_mem.c
+++ b/shared-core/nouveau_mem.c
@@ -473,8 +473,8 @@ alloc_ok:
block->flags|=NOUVEAU_MEM_MAPPED;
if (type == NOUVEAU_MEM_AGP)
- ret = drm_addmap(dev, block->start + dev->agp->base,
- block->size, _DRM_AGP, 0, &block->map);
+ ret = drm_addmap(dev, block->start, block->size,
+ _DRM_AGP, 0, &block->map);
else if (type == NOUVEAU_MEM_FB)
ret = drm_addmap(dev, block->start + dev_priv->fb_phys,
block->size, _DRM_FRAME_BUFFER,