summaryrefslogtreecommitdiff
path: root/drivers/sbus/char/vfc_dev.c
diff options
context:
space:
mode:
authorLinus Torvalds <torvalds@home.osdl.org>2003-08-30 23:45:59 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-30 23:45:59 -0700
commitc334ec3406bd4e366a4138570332d4e19fa70128 (patch)
treed465dd090c583e8646a98bf570a287c643ba66cb /drivers/sbus/char/vfc_dev.c
parented8dff304648833f2acf9b3189a1e611355111b0 (diff)
parent9b9f98eec3f1f66d0186f7c95e3d724cf3b6765b (diff)
Merge http://lia64.bkbits.net/to-linus-2.5
into home.osdl.org:/home/torvalds/v2.5/linux
Diffstat (limited to 'drivers/sbus/char/vfc_dev.c')
-rw-r--r--drivers/sbus/char/vfc_dev.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c
index d778964a586b..27dac275ab71 100644
--- a/drivers/sbus/char/vfc_dev.c
+++ b/drivers/sbus/char/vfc_dev.c
@@ -184,7 +184,7 @@ static int vfc_open(struct inode *inode, struct file *file)
struct vfc_dev *dev;
spin_lock(&vfc_dev_lock);
- dev = vfc_get_dev_ptr(MINOR(inode->i_rdev));
+ dev = vfc_get_dev_ptr(iminor(inode));
if (dev == NULL) {
spin_unlock(&vfc_dev_lock);
return -ENODEV;
@@ -215,7 +215,7 @@ static int vfc_release(struct inode *inode,struct file *file)
struct vfc_dev *dev;
spin_lock(&vfc_dev_lock);
- dev = vfc_get_dev_ptr(MINOR(inode->i_rdev));
+ dev = vfc_get_dev_ptr(iminor(inode));
if (!dev || !dev->busy) {
spin_unlock(&vfc_dev_lock);
return -EINVAL;
@@ -557,7 +557,7 @@ static int vfc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
unsigned int tmp;
struct vfc_dev *dev;
- dev = vfc_get_dev_ptr(MINOR(inode->i_rdev));
+ dev = vfc_get_dev_ptr(iminor(inode));
if(dev == NULL)
return -ENODEV;
@@ -602,7 +602,7 @@ static int vfc_ioctl(struct inode *inode, struct file *file, unsigned int cmd,
VFC_IOCTL_DEBUG_PRINTK(("vfc%d: IOCTL(VFCRDINFO)\n", dev->instance));
break;
default:
- ret = vfc_debug(vfc_get_dev_ptr(MINOR(inode->i_rdev)),
+ ret = vfc_debug(vfc_get_dev_ptr(iminor(inode)),
cmd, arg);
break;
};
@@ -616,7 +616,7 @@ static int vfc_mmap(struct inode *inode, struct file *file,
unsigned int map_size, ret, map_offset;
struct vfc_dev *dev;
- dev = vfc_get_dev_ptr(MINOR(inode->i_rdev));
+ dev = vfc_get_dev_ptr(iminor(inode));
if(dev == NULL)
return -ENODEV;