aboutsummaryrefslogtreecommitdiffstats
path: root/fs/coda
diff options
context:
space:
mode:
Diffstat (limited to 'fs/coda')
-rw-r--r--fs/coda/psdev.c11
1 files changed, 1 insertions, 10 deletions
diff --git a/fs/coda/psdev.c b/fs/coda/psdev.c
index a193823f9058..f478222cb5c9 100644
--- a/fs/coda/psdev.c
+++ b/fs/coda/psdev.c
@@ -365,21 +365,12 @@ static int init_coda_psdev(void)
365 err = PTR_ERR(coda_psdev_class); 365 err = PTR_ERR(coda_psdev_class);
366 goto out_chrdev; 366 goto out_chrdev;
367 } 367 }
368 for (i = 0; i < MAX_CODADEVS; i++) { 368 for (i = 0; i < MAX_CODADEVS; i++)
369 class_device_create(coda_psdev_class, NULL, 369 class_device_create(coda_psdev_class, NULL,
370 MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i); 370 MKDEV(CODA_PSDEV_MAJOR,i), NULL, "cfs%d", i);
371 err = devfs_mk_cdev(MKDEV(CODA_PSDEV_MAJOR, i),
372 S_IFCHR|S_IRUSR|S_IWUSR, "coda/%d", i);
373 if (err)
374 goto out_class;
375 }
376 coda_sysctl_init(); 371 coda_sysctl_init();
377 goto out; 372 goto out;
378 373
379out_class:
380 for (i = 0; i < MAX_CODADEVS; i++)
381 class_device_destroy(coda_psdev_class, MKDEV(CODA_PSDEV_MAJOR, i));
382 class_destroy(coda_psdev_class);
383out_chrdev: 374out_chrdev:
384 unregister_chrdev(CODA_PSDEV_MAJOR, "coda"); 375 unregister_chrdev(CODA_PSDEV_MAJOR, "coda");
385out: 376out: