diff options
Diffstat (limited to 'drivers/char/tipar.c')
-rw-r--r-- | drivers/char/tipar.c | 10 |
1 files changed, 0 insertions, 10 deletions
diff --git a/drivers/char/tipar.c b/drivers/char/tipar.c index 70cfe07ab999..0dc83a5bd4c1 100644 --- a/drivers/char/tipar.c +++ b/drivers/char/tipar.c | |||
@@ -443,12 +443,6 @@ tipar_register(int nr, struct parport *port) | |||
443 | 443 | ||
444 | class_device_create(tipar_class, NULL, MKDEV(TIPAR_MAJOR, | 444 | class_device_create(tipar_class, NULL, MKDEV(TIPAR_MAJOR, |
445 | TIPAR_MINOR + nr), NULL, "par%d", nr); | 445 | TIPAR_MINOR + nr), NULL, "par%d", nr); |
446 | /* Use devfs, tree: /dev/ticables/par/[0..2] */ | ||
447 | err = devfs_mk_cdev(MKDEV(TIPAR_MAJOR, TIPAR_MINOR + nr), | ||
448 | S_IFCHR | S_IRUGO | S_IWUGO, | ||
449 | "ticables/par/%d", nr); | ||
450 | if (err) | ||
451 | goto out_class; | ||
452 | 446 | ||
453 | /* Display informations */ | 447 | /* Display informations */ |
454 | pr_info("tipar%d: using %s (%s)\n", nr, port->name, (port->irq == | 448 | pr_info("tipar%d: using %s (%s)\n", nr, port->name, (port->irq == |
@@ -460,11 +454,7 @@ tipar_register(int nr, struct parport *port) | |||
460 | pr_info("tipar%d: link cable not found\n", nr); | 454 | pr_info("tipar%d: link cable not found\n", nr); |
461 | 455 | ||
462 | err = 0; | 456 | err = 0; |
463 | goto out; | ||
464 | 457 | ||
465 | out_class: | ||
466 | class_device_destroy(tipar_class, MKDEV(TIPAR_MAJOR, TIPAR_MINOR + nr)); | ||
467 | class_destroy(tipar_class); | ||
468 | out: | 458 | out: |
469 | return err; | 459 | return err; |
470 | } | 460 | } |