diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2005-06-21 00:15:16 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-06-26 15:25:07 -0400 |
commit | 7c69ef79741910883d5543caafa06aca3ebadbd1 (patch) | |
tree | 655d3f60abee0195d0aadb2c86ab04ccca89a307 /fs/coda | |
parent | 1a715c5cf917326a285533d1116d725f5f2593c2 (diff) |
[PATCH] devfs: Remove devfs_mk_cdev() function from the kernel tree
Removes the devfs_mk_cdev() function and all callers of it.
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'fs/coda')
-rw-r--r-- | fs/coda/psdev.c | 11 |
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 | ||
379 | out_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); | ||
383 | out_chrdev: | 374 | out_chrdev: |
384 | unregister_chrdev(CODA_PSDEV_MAJOR, "coda"); | 375 | unregister_chrdev(CODA_PSDEV_MAJOR, "coda"); |
385 | out: | 376 | out: |