diff options
Diffstat (limited to 'drivers/block')
-rw-r--r-- | drivers/block/acsi_slm.c | 4 | ||||
-rw-r--r-- | drivers/block/cpqarray.c | 2 | ||||
-rw-r--r-- | drivers/block/floppy.c | 33 | ||||
-rw-r--r-- | drivers/block/loop.c | 2 | ||||
-rw-r--r-- | drivers/block/nbd.c | 1 | ||||
-rw-r--r-- | drivers/block/paride/pg.c | 5 | ||||
-rw-r--r-- | drivers/block/paride/pt.c | 3 | ||||
-rw-r--r-- | drivers/block/rd.c | 1 | ||||
-rw-r--r-- | drivers/block/sx8.c | 1 | ||||
-rw-r--r-- | drivers/block/ub.c | 2 |
10 files changed, 2 insertions, 52 deletions
diff --git a/drivers/block/acsi_slm.c b/drivers/block/acsi_slm.c index b087b3a6f06f..7495fef24183 100644 --- a/drivers/block/acsi_slm.c +++ b/drivers/block/acsi_slm.c | |||
@@ -1027,10 +1027,6 @@ int init_module(void) | |||
1027 | 1027 | ||
1028 | void cleanup_module(void) | 1028 | void cleanup_module(void) |
1029 | { | 1029 | { |
1030 | int i; | ||
1031 | for (i = 0; i < MAX_SLM; i++) | ||
1032 | devfs_remove("slm/%d", i); | ||
1033 | devfs_remove("slm"); | ||
1034 | if (unregister_chrdev( ACSI_MAJOR, "slm" ) != 0) | 1030 | if (unregister_chrdev( ACSI_MAJOR, "slm" ) != 0) |
1035 | printk( KERN_ERR "acsi_slm: cleanup_module failed\n"); | 1031 | printk( KERN_ERR "acsi_slm: cleanup_module failed\n"); |
1036 | atari_stram_free( SLMBuffer ); | 1032 | atari_stram_free( SLMBuffer ); |
diff --git a/drivers/block/cpqarray.c b/drivers/block/cpqarray.c index 5eb6fb7b5cfa..2701ed734b24 100644 --- a/drivers/block/cpqarray.c +++ b/drivers/block/cpqarray.c | |||
@@ -348,7 +348,6 @@ static void __devexit cpqarray_remove_one(int i) | |||
348 | for(j = 0; j < NWD; j++) { | 348 | for(j = 0; j < NWD; j++) { |
349 | if (ida_gendisk[i][j]->flags & GENHD_FL_UP) | 349 | if (ida_gendisk[i][j]->flags & GENHD_FL_UP) |
350 | del_gendisk(ida_gendisk[i][j]); | 350 | del_gendisk(ida_gendisk[i][j]); |
351 | devfs_remove("ida/c%dd%d",i,j); | ||
352 | put_disk(ida_gendisk[i][j]); | 351 | put_disk(ida_gendisk[i][j]); |
353 | } | 352 | } |
354 | blk_cleanup_queue(hba[i]->queue); | 353 | blk_cleanup_queue(hba[i]->queue); |
@@ -1844,7 +1843,6 @@ static void __exit cpqarray_exit(void) | |||
1844 | } | 1843 | } |
1845 | } | 1844 | } |
1846 | 1845 | ||
1847 | devfs_remove("ida"); | ||
1848 | remove_proc_entry("cpqarray", proc_root_driver); | 1846 | remove_proc_entry("cpqarray", proc_root_driver); |
1849 | } | 1847 | } |
1850 | 1848 | ||
diff --git a/drivers/block/floppy.c b/drivers/block/floppy.c index ec14e6e6bccb..8e101a9655ba 100644 --- a/drivers/block/floppy.c +++ b/drivers/block/floppy.c | |||
@@ -3952,20 +3952,6 @@ static struct block_device_operations floppy_fops = { | |||
3952 | .media_changed = check_floppy_change, | 3952 | .media_changed = check_floppy_change, |
3953 | .revalidate_disk = floppy_revalidate, | 3953 | .revalidate_disk = floppy_revalidate, |
3954 | }; | 3954 | }; |
3955 | static char *table[] = { | ||
3956 | "", "d360", "h1200", "u360", "u720", "h360", "h720", | ||
3957 | "u1440", "u2880", "CompaQ", "h1440", "u1680", "h410", | ||
3958 | "u820", "h1476", "u1722", "h420", "u830", "h1494", "u1743", | ||
3959 | "h880", "u1040", "u1120", "h1600", "u1760", "u1920", | ||
3960 | "u3200", "u3520", "u3840", "u1840", "u800", "u1600", | ||
3961 | NULL | ||
3962 | }; | ||
3963 | static int t360[] = { 1, 0 }, | ||
3964 | t1200[] = { 2, 5, 6, 10, 12, 14, 16, 18, 20, 23, 0 }, | ||
3965 | t3in[] = { 8, 9, 26, 27, 28, 7, 11, 15, 19, 24, 25, 29, 31, 3, 4, 13, | ||
3966 | 17, 21, 22, 30, 0 }; | ||
3967 | static int *table_sup[] = | ||
3968 | { NULL, t360, t1200, t3in + 5 + 8, t3in + 5, t3in, t3in }; | ||
3969 | 3955 | ||
3970 | /* | 3956 | /* |
3971 | * Floppy Driver initialization | 3957 | * Floppy Driver initialization |
@@ -4244,7 +4230,7 @@ static int __init floppy_init(void) | |||
4244 | 4230 | ||
4245 | err = register_blkdev(FLOPPY_MAJOR, "fd"); | 4231 | err = register_blkdev(FLOPPY_MAJOR, "fd"); |
4246 | if (err) | 4232 | if (err) |
4247 | goto out_devfs_remove; | 4233 | goto out_put_disk; |
4248 | 4234 | ||
4249 | floppy_queue = blk_init_queue(do_fd_request, &floppy_lock); | 4235 | floppy_queue = blk_init_queue(do_fd_request, &floppy_lock); |
4250 | if (!floppy_queue) { | 4236 | if (!floppy_queue) { |
@@ -4403,8 +4389,6 @@ out_unreg_region: | |||
4403 | blk_cleanup_queue(floppy_queue); | 4389 | blk_cleanup_queue(floppy_queue); |
4404 | out_unreg_blkdev: | 4390 | out_unreg_blkdev: |
4405 | unregister_blkdev(FLOPPY_MAJOR, "fd"); | 4391 | unregister_blkdev(FLOPPY_MAJOR, "fd"); |
4406 | out_devfs_remove: | ||
4407 | devfs_remove("floppy"); | ||
4408 | out_put_disk: | 4392 | out_put_disk: |
4409 | while (dr--) { | 4393 | while (dr--) { |
4410 | del_timer(&motor_off_timer[dr]); | 4394 | del_timer(&motor_off_timer[dr]); |
@@ -4565,19 +4549,6 @@ static void floppy_release_irq_and_dma(void) | |||
4565 | 4549 | ||
4566 | static char *floppy; | 4550 | static char *floppy; |
4567 | 4551 | ||
4568 | static void unregister_devfs_entries(int drive) | ||
4569 | { | ||
4570 | int i; | ||
4571 | |||
4572 | if (UDP->cmos < ARRAY_SIZE(default_drive_params)) { | ||
4573 | i = 0; | ||
4574 | do { | ||
4575 | devfs_remove("floppy/%d%s", drive, | ||
4576 | table[table_sup[UDP->cmos][i]]); | ||
4577 | } while (table_sup[UDP->cmos][i++]); | ||
4578 | } | ||
4579 | } | ||
4580 | |||
4581 | static void __init parse_floppy_cfg_string(char *cfg) | 4552 | static void __init parse_floppy_cfg_string(char *cfg) |
4582 | { | 4553 | { |
4583 | char *ptr; | 4554 | char *ptr; |
@@ -4614,13 +4585,11 @@ void cleanup_module(void) | |||
4614 | if ((allowed_drive_mask & (1 << drive)) && | 4585 | if ((allowed_drive_mask & (1 << drive)) && |
4615 | fdc_state[FDC(drive)].version != FDC_NONE) { | 4586 | fdc_state[FDC(drive)].version != FDC_NONE) { |
4616 | del_gendisk(disks[drive]); | 4587 | del_gendisk(disks[drive]); |
4617 | unregister_devfs_entries(drive); | ||
4618 | device_remove_file(&floppy_device[drive].dev, &dev_attr_cmos); | 4588 | device_remove_file(&floppy_device[drive].dev, &dev_attr_cmos); |
4619 | platform_device_unregister(&floppy_device[drive]); | 4589 | platform_device_unregister(&floppy_device[drive]); |
4620 | } | 4590 | } |
4621 | put_disk(disks[drive]); | 4591 | put_disk(disks[drive]); |
4622 | } | 4592 | } |
4623 | devfs_remove("floppy"); | ||
4624 | 4593 | ||
4625 | del_timer_sync(&fd_timeout); | 4594 | del_timer_sync(&fd_timeout); |
4626 | del_timer_sync(&fd_timer); | 4595 | del_timer_sync(&fd_timer); |
diff --git a/drivers/block/loop.c b/drivers/block/loop.c index f650d20f2a17..0319b096b556 100644 --- a/drivers/block/loop.c +++ b/drivers/block/loop.c | |||
@@ -1308,7 +1308,6 @@ static int __init loop_init(void) | |||
1308 | out_mem4: | 1308 | out_mem4: |
1309 | while (i--) | 1309 | while (i--) |
1310 | blk_cleanup_queue(loop_dev[i].lo_queue); | 1310 | blk_cleanup_queue(loop_dev[i].lo_queue); |
1311 | devfs_remove("loop"); | ||
1312 | i = max_loop; | 1311 | i = max_loop; |
1313 | out_mem3: | 1312 | out_mem3: |
1314 | while (i--) | 1313 | while (i--) |
@@ -1331,7 +1330,6 @@ static void loop_exit(void) | |||
1331 | blk_cleanup_queue(loop_dev[i].lo_queue); | 1330 | blk_cleanup_queue(loop_dev[i].lo_queue); |
1332 | put_disk(disks[i]); | 1331 | put_disk(disks[i]); |
1333 | } | 1332 | } |
1334 | devfs_remove("loop"); | ||
1335 | if (unregister_blkdev(LOOP_MAJOR, "loop")) | 1333 | if (unregister_blkdev(LOOP_MAJOR, "loop")) |
1336 | printk(KERN_WARNING "loop: cannot unregister blkdev\n"); | 1334 | printk(KERN_WARNING "loop: cannot unregister blkdev\n"); |
1337 | 1335 | ||
diff --git a/drivers/block/nbd.c b/drivers/block/nbd.c index 618e258ca5d0..c24b349ae57b 100644 --- a/drivers/block/nbd.c +++ b/drivers/block/nbd.c | |||
@@ -685,7 +685,6 @@ static void __exit nbd_cleanup(void) | |||
685 | put_disk(disk); | 685 | put_disk(disk); |
686 | } | 686 | } |
687 | } | 687 | } |
688 | devfs_remove("nbd"); | ||
689 | unregister_blkdev(NBD_MAJOR, "nbd"); | 688 | unregister_blkdev(NBD_MAJOR, "nbd"); |
690 | printk(KERN_INFO "nbd: unregistered device at major %d\n", NBD_MAJOR); | 689 | printk(KERN_INFO "nbd: unregistered device at major %d\n", NBD_MAJOR); |
691 | } | 690 | } |
diff --git a/drivers/block/paride/pg.c b/drivers/block/paride/pg.c index 3d464f767eaf..e6f1614b69c3 100644 --- a/drivers/block/paride/pg.c +++ b/drivers/block/paride/pg.c | |||
@@ -695,13 +695,10 @@ static void __exit pg_exit(void) | |||
695 | 695 | ||
696 | for (unit = 0; unit < PG_UNITS; unit++) { | 696 | for (unit = 0; unit < PG_UNITS; unit++) { |
697 | struct pg *dev = &devices[unit]; | 697 | struct pg *dev = &devices[unit]; |
698 | if (dev->present) { | 698 | if (dev->present) |
699 | class_device_destroy(pg_class, MKDEV(major, unit)); | 699 | class_device_destroy(pg_class, MKDEV(major, unit)); |
700 | devfs_remove("pg/%u", unit); | ||
701 | } | ||
702 | } | 700 | } |
703 | class_destroy(pg_class); | 701 | class_destroy(pg_class); |
704 | devfs_remove("pg"); | ||
705 | unregister_chrdev(major, name); | 702 | unregister_chrdev(major, name); |
706 | 703 | ||
707 | for (unit = 0; unit < PG_UNITS; unit++) { | 704 | for (unit = 0; unit < PG_UNITS; unit++) { |
diff --git a/drivers/block/paride/pt.c b/drivers/block/paride/pt.c index c85bdcb384ae..ea12073c5fb1 100644 --- a/drivers/block/paride/pt.c +++ b/drivers/block/paride/pt.c | |||
@@ -992,12 +992,9 @@ static void __exit pt_exit(void) | |||
992 | for (unit = 0; unit < PT_UNITS; unit++) | 992 | for (unit = 0; unit < PT_UNITS; unit++) |
993 | if (pt[unit].present) { | 993 | if (pt[unit].present) { |
994 | class_device_destroy(pt_class, MKDEV(major, unit)); | 994 | class_device_destroy(pt_class, MKDEV(major, unit)); |
995 | devfs_remove("pt/%d", unit); | ||
996 | class_device_destroy(pt_class, MKDEV(major, unit + 128)); | 995 | class_device_destroy(pt_class, MKDEV(major, unit + 128)); |
997 | devfs_remove("pt/%dn", unit); | ||
998 | } | 996 | } |
999 | class_destroy(pt_class); | 997 | class_destroy(pt_class); |
1000 | devfs_remove("pt"); | ||
1001 | unregister_chrdev(major, name); | 998 | unregister_chrdev(major, name); |
1002 | for (unit = 0; unit < PT_UNITS; unit++) | 999 | for (unit = 0; unit < PT_UNITS; unit++) |
1003 | if (pt[unit].present) | 1000 | if (pt[unit].present) |
diff --git a/drivers/block/rd.c b/drivers/block/rd.c index 67821a8c6210..acaa2abf05a2 100644 --- a/drivers/block/rd.c +++ b/drivers/block/rd.c | |||
@@ -412,7 +412,6 @@ static void __exit rd_cleanup(void) | |||
412 | put_disk(rd_disks[i]); | 412 | put_disk(rd_disks[i]); |
413 | blk_cleanup_queue(rd_queue[i]); | 413 | blk_cleanup_queue(rd_queue[i]); |
414 | } | 414 | } |
415 | devfs_remove("rd"); | ||
416 | unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); | 415 | unregister_blkdev(RAMDISK_MAJOR, "ramdisk"); |
417 | } | 416 | } |
418 | 417 | ||
diff --git a/drivers/block/sx8.c b/drivers/block/sx8.c index 9fb3f51e574e..a366ea8c6a40 100644 --- a/drivers/block/sx8.c +++ b/drivers/block/sx8.c | |||
@@ -1736,7 +1736,6 @@ static void carm_remove_one (struct pci_dev *pdev) | |||
1736 | 1736 | ||
1737 | free_irq(pdev->irq, host); | 1737 | free_irq(pdev->irq, host); |
1738 | carm_free_disks(host); | 1738 | carm_free_disks(host); |
1739 | devfs_remove(DRV_NAME); | ||
1740 | unregister_blkdev(host->major, host->name); | 1739 | unregister_blkdev(host->major, host->name); |
1741 | if (host->major == 160) | 1740 | if (host->major == 160) |
1742 | clear_bit(0, &carm_major_alloc); | 1741 | clear_bit(0, &carm_major_alloc); |
diff --git a/drivers/block/ub.c b/drivers/block/ub.c index 088e5ba15c24..b68abc9d4c1f 100644 --- a/drivers/block/ub.c +++ b/drivers/block/ub.c | |||
@@ -2453,7 +2453,6 @@ static int __init ub_init(void) | |||
2453 | return 0; | 2453 | return 0; |
2454 | 2454 | ||
2455 | err_register: | 2455 | err_register: |
2456 | devfs_remove(DEVFS_NAME); | ||
2457 | unregister_blkdev(UB_MAJOR, DRV_NAME); | 2456 | unregister_blkdev(UB_MAJOR, DRV_NAME); |
2458 | err_regblkdev: | 2457 | err_regblkdev: |
2459 | return rc; | 2458 | return rc; |
@@ -2463,7 +2462,6 @@ static void __exit ub_exit(void) | |||
2463 | { | 2462 | { |
2464 | usb_deregister(&ub_driver); | 2463 | usb_deregister(&ub_driver); |
2465 | 2464 | ||
2466 | devfs_remove(DEVFS_NAME); | ||
2467 | unregister_blkdev(UB_MAJOR, DRV_NAME); | 2465 | unregister_blkdev(UB_MAJOR, DRV_NAME); |
2468 | usb_usual_clear_present(USB_US_TYPE_UB); | 2466 | usb_usual_clear_present(USB_US_TYPE_UB); |
2469 | } | 2467 | } |