aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/char/pcmcia/cm4040_cs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/char/pcmcia/cm4040_cs.c')
-rw-r--r--drivers/char/pcmcia/cm4040_cs.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/char/pcmcia/cm4040_cs.c b/drivers/char/pcmcia/cm4040_cs.c
index 55cf4be42976..7368332c698c 100644
--- a/drivers/char/pcmcia/cm4040_cs.c
+++ b/drivers/char/pcmcia/cm4040_cs.c
@@ -721,14 +721,14 @@ static int __init cm4040_init(void)
721 721
722 printk(KERN_INFO "%s\n", version); 722 printk(KERN_INFO "%s\n", version);
723 cmx_class = class_create(THIS_MODULE, "cardman_4040"); 723 cmx_class = class_create(THIS_MODULE, "cardman_4040");
724 if (!cmx_class) 724 if (IS_ERR(cmx_class))
725 return -1; 725 return PTR_ERR(cmx_class);
726 726
727 major = register_chrdev(0, DEVICE_NAME, &reader_fops); 727 major = register_chrdev(0, DEVICE_NAME, &reader_fops);
728 if (major < 0) { 728 if (major < 0) {
729 printk(KERN_WARNING MODULE_NAME 729 printk(KERN_WARNING MODULE_NAME
730 ": could not get major number\n"); 730 ": could not get major number\n");
731 return -1; 731 return major;
732 } 732 }
733 733
734 rc = pcmcia_register_driver(&reader_driver); 734 rc = pcmcia_register_driver(&reader_driver);