Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / drivers / block / aoe / aoechr.c
index 1bc1cf9..5327f55 100644 (file)
@@ -162,7 +162,7 @@ aoechr_open(struct inode *inode, struct file *filp)
 {
        int n, i;
 
-       n = iminor(inode);
+       n = MINOR(inode->i_rdev);
        filp->private_data = (void *) (unsigned long) n;
 
        for (i = 0; i < ARRAY_SIZE(chardevs); ++i)