diff options
Diffstat (limited to 'linux')
-rw-r--r-- | linux/drm_bufs.h | 6 | ||||
-rw-r--r-- | linux/drm_drv.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/linux/drm_bufs.h b/linux/drm_bufs.h index d50090bb..69511f91 100644 --- a/linux/drm_bufs.h +++ b/linux/drm_bufs.h @@ -126,7 +126,7 @@ int DRM(addmap)( struct inode *inode, struct file *filp, return -EINVAL; } map->mtrr = -1; - map->handle = 0; + map->handle = NULL; switch ( map->type ) { case _DRM_REGISTERS: @@ -469,7 +469,7 @@ int DRM(addbufs_agp)( struct inode *inode, struct file *filp, buf->waiting = 0; buf->pending = 0; init_waitqueue_head( &buf->dma_wait ); - buf->filp = 0; + buf->filp = NULL; buf->dev_priv_size = sizeof(DRIVER_BUF_PRIV_T); buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T), @@ -693,7 +693,7 @@ int DRM(addbufs_pci)( struct inode *inode, struct file *filp, buf->waiting = 0; buf->pending = 0; init_waitqueue_head( &buf->dma_wait ); - buf->filp = 0; + buf->filp = NULL; buf->dev_priv_size = sizeof(DRIVER_BUF_PRIV_T); buf->dev_private = DRM(alloc)( sizeof(DRIVER_BUF_PRIV_T), diff --git a/linux/drm_drv.h b/linux/drm_drv.h index c4d4391d..42831be0 100644 --- a/linux/drm_drv.h +++ b/linux/drm_drv.h @@ -545,7 +545,7 @@ static int DRM(takedown)( drm_device_t *dev ) #endif if ( dev->lock.hw_lock ) { dev->sigdata.lock = dev->lock.hw_lock = NULL; /* SHM removed */ - dev->lock.filp = 0; + dev->lock.filp = NULL; wake_up_interruptible( &dev->lock.lock_queue ); } |