[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>
This commit is contained in:
@@ -401,13 +401,6 @@ static int __init cosa_init(void)
|
||||
for (i=0; i<nr_cards; i++) {
|
||||
class_device_create(cosa_class, NULL, MKDEV(cosa_major, i),
|
||||
NULL, "cosa%d", i);
|
||||
err = devfs_mk_cdev(MKDEV(cosa_major, i),
|
||||
S_IFCHR|S_IRUSR|S_IWUSR,
|
||||
"cosa/%d", i);
|
||||
if (err) {
|
||||
class_device_destroy(cosa_class, MKDEV(cosa_major, i));
|
||||
goto out_chrdev;
|
||||
}
|
||||
}
|
||||
err = 0;
|
||||
goto out;
|
||||
|
Reference in New Issue
Block a user