aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda/psdev.c
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda/psdev.c')
-rw-r--r--fs/coda/psdev.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c
index f478222cb5c9..aaf6462a9421 100644
--- a/fs/coda/psdev.c
+++ b/fs/coda/psdev.c
@@ -409,12 +409,9 @@ static int __init init_coda(void)
409 } 409 }
410 return 0; 410 return 0;
411out: 411out:
412 for (i = 0; i < MAX_CODADEVS; i++) { 412 for (i = 0; i < MAX_CODADEVS; i++)
413 class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); 413 class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));
414 devfs_remove("coda/%d", i);
415 }
416 class_destroy(coda_psdev_class); 414 class_destroy(coda_psdev_class);
417 devfs_remove("coda");
418 unregister_chrdev(CODA_PSDEV_MAJOR, "coda"); 415 unregister_chrdev(CODA_PSDEV_MAJOR, "coda");
419 coda_sysctl_clean(); 416 coda_sysctl_clean();
420out1: 417out1:
@@ -431,12 +428,9 @@ static void __exit exit_coda(void)
431 if ( err != 0 ) { 428 if ( err != 0 ) {
432 printk("coda: failed to unregister filesystem\n"); 429 printk("coda: failed to unregister filesystem\n");
433 } 430 }
434 for (i = 0; i < MAX_CODADEVS; i++) { 431 for (i = 0; i < MAX_CODADEVS; i++)
435 class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i)); 432 class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));
436 devfs_remove("coda/%d", i);
437 }
438 class_destroy(coda_psdev_class); 433 class_destroy(coda_psdev_class);
439 devfs_remove("coda");
440 unregister_chrdev(CODA_PSDEV_MAJOR, "coda"); 434 unregister_chrdev(CODA_PSDEV_MAJOR, "coda");
441 coda_sysctl_clean(); 435 coda_sysctl_clean();
442 coda_destroy_inodecache(); 436 coda_destroy_inodecache();