summaryrefslogtreecommitdiff
path: root/shared
diff options
context:
space:
mode:
Diffstat (limited to 'shared')
-rw-r--r--shared/radeon_cp.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/shared/radeon_cp.c b/shared/radeon_cp.c
index 27a1beb0..b1b9bf6e 100644
--- a/shared/radeon_cp.c
+++ b/shared/radeon_cp.c
@@ -1743,9 +1743,8 @@ int radeon_preinit( struct drm_device *dev, unsigned long flags )
dev_priv->flags = flags;
/* registers */
- /* PCI space is twice the real size, so that you can have a RW and RO mapping */
if( (ret = DRM(initmap)( dev, pci_resource_start( dev->pdev, 2 ),
- pci_resource_len( dev->pdev, 2 ) / 2, _DRM_REGISTERS, 0 )))
+ pci_resource_len( dev->pdev, 2 ), _DRM_REGISTERS, 0 )))
return ret;
/* framebuffer */