summaryrefslogtreecommitdiff
path: root/linux-core
diff options
context:
space:
mode:
Diffstat (limited to 'linux-core')
-rw-r--r--linux-core/drm_bufs.c6
-rw-r--r--linux-core/drm_drv.c2
2 files changed, 4 insertions, 4 deletions
diff --git a/linux-core/drm_bufs.c b/linux-core/drm_bufs.c
index d50090bb..69511f91 100644
--- a/linux-core/drm_bufs.c
+++ b/linux-core/drm_bufs.c
@@ -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-core/drm_drv.c b/linux-core/drm_drv.c
index c4d4391d..42831be0 100644
--- a/linux-core/drm_drv.c
+++ b/linux-core/drm_drv.c
@@ -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 );
}