]> pilppa.org Git - linux-2.6-omap-h63xx.git/blobdiff - drivers/char/raw.c
h8300: types: use <asm-generic/int-*.h> for the h8300 architecture
[linux-2.6-omap-h63xx.git] / drivers / char / raw.c
index 645e20a06ece382149b0f0eff59812aeed1d6a59..bbfa0e241cba38928c8a5b5157a7a2a3ac178d2a 100644 (file)
@@ -154,7 +154,7 @@ static int raw_ctl_ioctl(struct inode *inode, struct file *filp,
                        goto out;
                }
 
-               if (rq.raw_minor < 0 || rq.raw_minor >= MAX_RAW_MINORS) {
+               if (rq.raw_minor <= 0 || rq.raw_minor >= MAX_RAW_MINORS) {
                        err = -EINVAL;
                        goto out;
                }
@@ -255,10 +255,7 @@ static const struct file_operations raw_ctl_fops = {
        .owner  =       THIS_MODULE,
 };
 
-static struct cdev raw_cdev = {
-       .kobj   =       {.name = "raw", },
-       .owner  =       THIS_MODULE,
-};
+static struct cdev raw_cdev;
 
 static int __init raw_init(void)
 {