summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDave Airlie <airlied@starflyer.(none)>2005-09-30 19:12:46 +1000
committerDave Airlie <airlied@linux.ie>2005-09-30 19:12:46 +1000
commit3d5efad953c6d5ba11d5bcb584ef8e906f953a73 (patch)
tree1ff02ade271173d594818c6ca40aa8678987da6f /drivers
parentb3a83639895a422b25f72eec0a5d1d88c3ac4e9e (diff)
downloadlinux-0-day-3d5efad953c6d5ba11d5bcb584ef8e906f953a73.tar.gz
linux-0-day-3d5efad953c6d5ba11d5bcb584ef8e906f953a73.tar.xz
drm: fix drm PCIGART
PCI Express support broke PCIGART Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/char/drm/ati_pcigart.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/drm/ati_pcigart.c b/drivers/char/drm/ati_pcigart.c
index d07ce96e9f4b0..6d3fec160bffb 100644
--- a/drivers/char/drm/ati_pcigart.c
+++ b/drivers/char/drm/ati_pcigart.c
@@ -205,7 +205,8 @@ int drm_ati_pcigart_init(drm_device_t * dev, drm_ati_pcigart_info * gart_info)
if (gart_info->is_pcie)
*pci_gart = (cpu_to_le32(page_base) >> 8) | 0xc;
else
- *pci_gart++ = cpu_to_le32(page_base);
+ *pci_gart = cpu_to_le32(page_base);
+ *pci_gart++;
page_base += ATI_PCIGART_PAGE_SIZE;
}
}