aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/block/paride/pt.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/block/paride/pt.c')
-rw-r--r--drivers/block/paride/pt.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c
index 7adadd5b29fc..c85bdcb384ae 100644
--- a/drivers/block/paride/pt.c
+++ b/drivers/block/paride/pt.c
@@ -975,27 +975,11 @@ static int __init pt_init(void)
975 if (pt[unit].present) { 975 if (pt[unit].present) {
976 class_device_create(pt_class, NULL, MKDEV(major, unit), 976 class_device_create(pt_class, NULL, MKDEV(major, unit),
977 NULL, "pt%d", unit); 977 NULL, "pt%d", unit);
978 err = devfs_mk_cdev(MKDEV(major, unit),
979 S_IFCHR | S_IRUSR | S_IWUSR,
980 "pt/%d", unit);
981 if (err) {
982 class_device_destroy(pt_class, MKDEV(major, unit));
983 goto out_class;
984 }
985 class_device_create(pt_class, NULL, MKDEV(major, unit + 128), 978 class_device_create(pt_class, NULL, MKDEV(major, unit + 128),
986 NULL, "pt%dn", unit); 979 NULL, "pt%dn", unit);
987 err = devfs_mk_cdev(MKDEV(major, unit + 128),
988 S_IFCHR | S_IRUSR | S_IWUSR,
989 "pt/%dn", unit);
990 if (err) {
991 class_device_destroy(pt_class, MKDEV(major, unit + 128));
992 goto out_class;
993 }
994 } 980 }
995 goto out; 981 goto out;
996 982
997out_class:
998 class_destroy(pt_class);
999out_chrdev: 983out_chrdev:
1000 unregister_chrdev(major, "pt"); 984 unregister_chrdev(major, "pt");
1001out: 985out: