aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pcmcia/pcmcia_ioctl.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pcmcia/pcmcia_ioctl.c')
-rw-r--r--drivers/pcmcia/pcmcia_ioctl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/pcmcia/pcmcia_ioctl.c b/drivers/pcmcia/pcmcia_ioctl.c
index 3084d8a3ba41..b883bc151ed0 100644
--- a/drivers/pcmcia/pcmcia_ioctl.c
+++ b/drivers/pcmcia/pcmcia_ioctl.c
@@ -760,9 +760,9 @@ void __init pcmcia_setup_ioctl(void) {
760 760
761 /* Set up character device for user mode clients */ 761 /* Set up character device for user mode clients */
762 i = register_chrdev(0, "pcmcia", &ds_fops); 762 i = register_chrdev(0, "pcmcia", &ds_fops);
763 if (i == -EBUSY) 763 if (i < 0)
764 printk(KERN_NOTICE "unable to find a free device # for " 764 printk(KERN_NOTICE "unable to find a free device # for "
765 "Driver Services\n"); 765 "Driver Services (error=%d)\n", i);
766 else 766 else
767 major_dev = i; 767 major_dev = i;
768 768