summaryrefslogtreecommitdiff
path: root/bsd/drm_drv.h
diff options
context:
space:
mode:
authorEric Anholt <anholt@freebsd.org>2003-04-24 05:56:44 +0000
committerEric Anholt <anholt@freebsd.org>2003-04-24 05:56:44 +0000
commitc6d2af70cb30a5cc65aebae2637313158a95346e (patch)
tree0461cc385059e5880da13a51910a39b24037f796 /bsd/drm_drv.h
parentaf3bfdef26b2d02ea4877e3d57601e57ffa4e95a (diff)
Move some common code from addbufs_<type> to addbufs. Make buf_alloc be
protected by the count_lock and make it non-atomic.
Diffstat (limited to 'bsd/drm_drv.h')
-rw-r--r--bsd/drm_drv.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd/drm_drv.h b/bsd/drm_drv.h
index 779f4ef4..1006e247 100644
--- a/bsd/drm_drv.h
+++ b/bsd/drm_drv.h
@@ -425,7 +425,7 @@ static int DRM(setup)( drm_device_t *dev )
DRIVER_PRESETUP();
dev->buf_use = 0;
- atomic_set( &dev->buf_alloc, 0 );
+ dev->buf_alloc = 0;
#if __HAVE_DMA
i = DRM(dma_setup)( dev );