diff options
author | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-08-13 20:22:56 +0000 |
---|---|---|
committer | Owain Ainsworth <oga@cvs.openbsd.org> | 2008-08-13 20:22:56 +0000 |
commit | 3e4a0627cdcc63c16364f96cff5a1cf6aee816b2 (patch) | |
tree | f36850e6d9c7bdf754d5d22021fa602a01137a89 /sys/dev/pci/drm/drm_drv.c | |
parent | 374ec5ab0b2b7aed2e7475d6e513e01a52625bb5 (diff) |
idgen32 wasn't really right here. Change back to how it was, but
done a little nicer.
Advice from deraadt@.
Diffstat (limited to 'sys/dev/pci/drm/drm_drv.c')
-rw-r--r-- | sys/dev/pci/drm/drm_drv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pci/drm/drm_drv.c b/sys/dev/pci/drm/drm_drv.c index f5b201e32e1..04331bb42a9 100644 --- a/sys/dev/pci/drm/drm_drv.c +++ b/sys/dev/pci/drm/drm_drv.c @@ -253,7 +253,7 @@ drm_firstopen(struct drm_device *dev) for ( i = 0 ; i < DRM_ARRAY_SIZE(dev->counts) ; i++ ) atomic_set( &dev->counts[i], 0 ); - idgen32_init(&dev->magicid); + dev->magicid = 1; SPLAY_INIT(&dev->magiclist); dev->lock.lock_queue = 0; |