summaryrefslogtreecommitdiff
path: root/shared-core/savage_bci.c
diff options
context:
space:
mode:
authorJon Smirl <jonsmirl@yahoo.com>2005-06-21 02:20:02 +0000
committerJon Smirl <jonsmirl@yahoo.com>2005-06-21 02:20:02 +0000
commit9fb77e869f530f3c9679dd63db07514e2f45efc7 (patch)
tree08612bcc998eb51a502da3ff962422acd39d1f5a /shared-core/savage_bci.c
parent298b6fcedbc3a521c2218404a96de0754dbb4f02 (diff)
Change initialization of savage register access to _DRM_READ_ONLY. Flags of
zero does not mean no privs, instead it grants write access _DRM_READ_ONLY only applies to non-root users. Problem is only in CVS, initmaps are not in the kernel yet.
Diffstat (limited to 'shared-core/savage_bci.c')
-rw-r--r--shared-core/savage_bci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/shared-core/savage_bci.c b/shared-core/savage_bci.c
index a288fee0..150f74b4 100644
--- a/shared-core/savage_bci.c
+++ b/shared-core/savage_bci.c
@@ -624,7 +624,7 @@ int savage_preinit(drm_device_t *dev, unsigned long chipset)
}
if ((ret = drm_initmap(dev, mmio_base, SAVAGE_MMIO_SIZE, 0,
- _DRM_REGISTERS, 0)))
+ _DRM_REGISTERS, _DRM_READ_ONLY)))
return ret;
if (!(dev_priv->mmio = drm_core_findmap (dev, mmio_base)))
return DRM_ERR(ENOMEM);