diff options
author | David Woodhouse <dwmw2@shinybook.infradead.org> | 2006-04-28 20:42:26 -0400 |
---|---|---|
committer | David Woodhouse <dwmw2@infradead.org> | 2006-04-28 20:42:26 -0400 |
commit | d6754b401a15eaa16492ea5dbaa4826361d3f411 (patch) | |
tree | 032f067d3af458527d903a7653885404ed82431e /arch/mips/kernel/vpe.c | |
parent | acc429a517bd11fdcac9bea97d082d26231beb92 (diff) | |
parent | 693f7d362055261882659475d2ef022e32edbff1 (diff) |
Merge git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux-2.6
Diffstat (limited to 'arch/mips/kernel/vpe.c')
-rw-r--r-- | arch/mips/kernel/vpe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/arch/mips/kernel/vpe.c b/arch/mips/kernel/vpe.c index 80ffaa6d50ad..85d7df7b18e1 100644 --- a/arch/mips/kernel/vpe.c +++ b/arch/mips/kernel/vpe.c | |||
@@ -1072,7 +1072,7 @@ static int vpe_open(struct inode *inode, struct file *filp) | |||
1072 | struct vpe_notifications *not; | 1072 | struct vpe_notifications *not; |
1073 | 1073 | ||
1074 | /* assume only 1 device at the mo. */ | 1074 | /* assume only 1 device at the mo. */ |
1075 | if ((minor = MINOR(inode->i_rdev)) != 1) { | 1075 | if ((minor = iminor(inode)) != 1) { |
1076 | printk(KERN_WARNING "VPE loader: only vpe1 is supported\n"); | 1076 | printk(KERN_WARNING "VPE loader: only vpe1 is supported\n"); |
1077 | return -ENODEV; | 1077 | return -ENODEV; |
1078 | } | 1078 | } |
@@ -1133,7 +1133,7 @@ static int vpe_release(struct inode *inode, struct file *filp) | |||
1133 | struct vpe *v; | 1133 | struct vpe *v; |
1134 | Elf_Ehdr *hdr; | 1134 | Elf_Ehdr *hdr; |
1135 | 1135 | ||
1136 | minor = MINOR(inode->i_rdev); | 1136 | minor = iminor(inode); |
1137 | if ((v = get_vpe(minor)) == NULL) | 1137 | if ((v = get_vpe(minor)) == NULL) |
1138 | return -ENODEV; | 1138 | return -ENODEV; |
1139 | 1139 | ||
@@ -1174,7 +1174,7 @@ static ssize_t vpe_write(struct file *file, const char __user * buffer, | |||
1174 | size_t ret = count; | 1174 | size_t ret = count; |
1175 | struct vpe *v; | 1175 | struct vpe *v; |
1176 | 1176 | ||
1177 | minor = MINOR(file->f_dentry->d_inode->i_rdev); | 1177 | minor = iminor(file->f_dentry->d_inode); |
1178 | if ((v = get_vpe(minor)) == NULL) | 1178 | if ((v = get_vpe(minor)) == NULL) |
1179 | return -ENODEV; | 1179 | return -ENODEV; |
1180 | 1180 | ||