diff options
Diffstat (limited to 'drivers/char/ppdev.c')
-rw-r--r-- | drivers/char/ppdev.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/char/ppdev.c b/drivers/char/ppdev.c index 99c51b4b07e7..1cd49241e60e 100644 --- a/drivers/char/ppdev.c +++ b/drivers/char/ppdev.c | |||
@@ -779,7 +779,8 @@ static int __init ppdev_init (void) | |||
779 | err = PTR_ERR(ppdev_class); | 779 | err = PTR_ERR(ppdev_class); |
780 | goto out_chrdev; | 780 | goto out_chrdev; |
781 | } | 781 | } |
782 | if (parport_register_driver(&pp_driver)) { | 782 | err = parport_register_driver(&pp_driver); |
783 | if (err < 0) { | ||
783 | printk (KERN_WARNING CHRDEV ": unable to register with parport\n"); | 784 | printk (KERN_WARNING CHRDEV ": unable to register with parport\n"); |
784 | goto out_class; | 785 | goto out_class; |
785 | } | 786 | } |