summaryrefslogtreecommitdiff
path: root/shared/radeon_cp.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2004-09-22 19:13:02 +0000
committerJon Smirl <jonsmirl@yahoo.com>2004-09-22 19:13:02 +0000
commit27fc998f7d16e7197f38b2d7d1ce65938e06423d (patch)
treea0dcc514d96c433a3b5327b7063e2d350e7246c0 /shared/radeon_cp.c
parent184a50368505bb74f3efac3cf48e72db41487342 (diff)
Remove hotplug reset support from DRM driver. This will be handled by the
VGA driver when it gets written.
Diffstat (limited to 'shared/radeon_cp.c')
-rw-r--r--shared/radeon_cp.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/shared/radeon_cp.c b/shared/radeon_cp.c
index b1b9bf6e..cbde7ce9 100644
--- a/shared/radeon_cp.c
+++ b/shared/radeon_cp.c
@@ -1730,7 +1730,7 @@ int radeon_cp_buffers( DRM_IOCTL_ARGS )
/* Always create a map record for MMIO and FB memory, done from DRIVER_POSTINIT */
int radeon_preinit( struct drm_device *dev, unsigned long flags )
{
- u32 save, temp, memmode;
+ u32 save, temp;
drm_radeon_private_t *dev_priv;
int ret = 0;
@@ -1769,10 +1769,6 @@ int radeon_preinit( struct drm_device *dev, unsigned long flags )
/* Check if we need a reset */
if (!(dev_priv->mmio = drm_core_findmap(dev , pci_resource_start( dev->pdev, 2 ))))
return DRM_ERR(ENOMEM);
-
- memmode = RADEON_READ(RADEON_MEM_SDRAM_MODE_REG);
- DRM_DEBUG("Memmode is %x, if zero needs reset\n", memmode);
- dev->need_reset = (memmode == 0);
#if defined(__linux__)
ret = radeon_create_i2c_busses(dev);