Revert to Fedora kernel-2.6.17-1.2187_FC5 patched with vs2.0.2.1; there are too many...
[linux-2.6.git] / arch / cris / arch-v32 / drivers / cryptocop.c
index ba096eb..c59ee28 100644 (file)
@@ -2302,7 +2302,7 @@ static int cryptocop_job_setup(struct cryptocop_prio_job **pj, struct cryptocop_
 
 static int cryptocop_open(struct inode *inode, struct file *filp)
 {
-       int p = iminor(inode);
+       int p = MINOR(inode->i_rdev);
 
        if (p != CRYPTOCOP_MINOR) return -EINVAL;