aboutsummaryrefslogtreecommitdiff
path: root/bsd-core/drm_drv.c
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-core/drm_drv.c
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-core/drm_drv.c')
-rw-r--r--bsd-core/drm_drv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bsd-core/drm_drv.c b/bsd-core/drm_drv.c
index 779f4ef4..1006e247 100644
--- a/bsd-core/drm_drv.c
+++ b/bsd-core/drm_drv.c
@@ -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 );