]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/block/cciss.c
[PATCH] cciss: change cciss_open for consistency
[linux-2.6-omap-h63xx.git] / drivers / block / cciss.c
index e61279f6f26e7c3774d95041a803102b09cf9ef1..c8343051be9e2af4e5332245fb243025be5ed923 100644 (file)
@@ -494,7 +494,7 @@ static int cciss_open(struct inode *inode, struct file *filep)
         * but I'm already using way to many device nodes to claim another one
         * for "raw controller".
         */
-       if (drv->nr_blocks == 0) {
+       if (drv->heads == 0) {
                if (iminor(inode) != 0) {       /* not node 0? */
                        /* if not node 0 make sure it is a partition = 0 */
                        if (iminor(inode) & 0x0f) {