diff options
author | Dave Airlie <airlied@linux.ie> | 2004-04-08 12:25:31 +0000 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2004-04-08 12:25:31 +0000 |
commit | c3e2685e822f70976fa57db2955cdd98dc5730f4 (patch) | |
tree | 0f928e66b6faa52d6779ae84b00b2c0ed1162a96 | |
parent | 9cff4b45e77c9259a4161ddb55564336f8b99361 (diff) |
long dev_t patches from 2.6 tree
-rw-r--r-- | linux-core/drm_fops.c | 6 | ||||
-rw-r--r-- | linux-core/drm_proc.c | 4 | ||||
-rw-r--r-- | linux-core/drm_stub.c | 2 | ||||
-rw-r--r-- | linux/drm_fops.h | 6 | ||||
-rw-r--r-- | linux/drm_proc.h | 4 | ||||
-rw-r--r-- | linux/drm_stub.h | 2 |
6 files changed, 12 insertions, 12 deletions
diff --git a/linux-core/drm_fops.c b/linux-core/drm_fops.c index 771a2fa2..152cb4d7 100644 --- a/linux-core/drm_fops.c +++ b/linux-core/drm_fops.c @@ -52,7 +52,7 @@ */ int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev) { - int minor = minor(inode->i_rdev); + int minor = iminor(inode); drm_file_t *priv; if (filp->f_flags & O_EXCL) return -EBUSY; /* No exclusive opens */ @@ -114,7 +114,7 @@ int DRM(flush)(struct file *filp) drm_device_t *dev = priv->dev; DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n", - current->pid, (long)dev->device, dev->open_count); + current->pid, (long)old_encode_dev(dev->device), dev->open_count); return 0; } @@ -125,7 +125,7 @@ int DRM(fasync)(int fd, struct file *filp, int on) drm_device_t *dev = priv->dev; int retcode; - DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, (long)dev->device); + DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, (long)old_encode_dev(dev->device)); retcode = fasync_helper(fd, filp, on, &dev->buf_async); if (retcode < 0) return retcode; return 0; diff --git a/linux-core/drm_proc.c b/linux-core/drm_proc.c index 3d2c96b4..dc6e1bb2 100644 --- a/linux-core/drm_proc.c +++ b/linux-core/drm_proc.c @@ -185,9 +185,9 @@ static int DRM(name_info)(char *buf, char **start, off_t offset, int request, if (dev->unique) { DRM_PROC_PRINT("%s 0x%lx %s\n", - dev->name, (long)dev->device, dev->unique); + dev->name, (long)old_encode_dev(dev->device), dev->unique); } else { - DRM_PROC_PRINT("%s 0x%lx\n", dev->name, (long)dev->device); + DRM_PROC_PRINT("%s 0x%lx\n", dev->name, (long)old_encode_dev(dev->device)); } if (len > request + offset) return request; diff --git a/linux-core/drm_stub.c b/linux-core/drm_stub.c index c5fdf15a..40904799 100644 --- a/linux-core/drm_stub.c +++ b/linux-core/drm_stub.c @@ -63,7 +63,7 @@ static struct drm_stub_info { */ static int DRM(stub_open)(struct inode *inode, struct file *filp) { - int minor = minor(inode->i_rdev); + int minor = iminor(inode); int err = -ENODEV; struct file_operations *old_fops; diff --git a/linux/drm_fops.h b/linux/drm_fops.h index 771a2fa2..152cb4d7 100644 --- a/linux/drm_fops.h +++ b/linux/drm_fops.h @@ -52,7 +52,7 @@ */ int DRM(open_helper)(struct inode *inode, struct file *filp, drm_device_t *dev) { - int minor = minor(inode->i_rdev); + int minor = iminor(inode); drm_file_t *priv; if (filp->f_flags & O_EXCL) return -EBUSY; /* No exclusive opens */ @@ -114,7 +114,7 @@ int DRM(flush)(struct file *filp) drm_device_t *dev = priv->dev; DRM_DEBUG("pid = %d, device = 0x%lx, open_count = %d\n", - current->pid, (long)dev->device, dev->open_count); + current->pid, (long)old_encode_dev(dev->device), dev->open_count); return 0; } @@ -125,7 +125,7 @@ int DRM(fasync)(int fd, struct file *filp, int on) drm_device_t *dev = priv->dev; int retcode; - DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, (long)dev->device); + DRM_DEBUG("fd = %d, device = 0x%lx\n", fd, (long)old_encode_dev(dev->device)); retcode = fasync_helper(fd, filp, on, &dev->buf_async); if (retcode < 0) return retcode; return 0; diff --git a/linux/drm_proc.h b/linux/drm_proc.h index 3d2c96b4..dc6e1bb2 100644 --- a/linux/drm_proc.h +++ b/linux/drm_proc.h @@ -185,9 +185,9 @@ static int DRM(name_info)(char *buf, char **start, off_t offset, int request, if (dev->unique) { DRM_PROC_PRINT("%s 0x%lx %s\n", - dev->name, (long)dev->device, dev->unique); + dev->name, (long)old_encode_dev(dev->device), dev->unique); } else { - DRM_PROC_PRINT("%s 0x%lx\n", dev->name, (long)dev->device); + DRM_PROC_PRINT("%s 0x%lx\n", dev->name, (long)old_encode_dev(dev->device)); } if (len > request + offset) return request; diff --git a/linux/drm_stub.h b/linux/drm_stub.h index c5fdf15a..40904799 100644 --- a/linux/drm_stub.h +++ b/linux/drm_stub.h @@ -63,7 +63,7 @@ static struct drm_stub_info { */ static int DRM(stub_open)(struct inode *inode, struct file *filp) { - int minor = minor(inode->i_rdev); + int minor = iminor(inode); int err = -ENODEV; struct file_operations *old_fops; |