[PATCH] devfs: Remove the miscdevice devfs_name field as it's no longer needed
Also fixes all drivers that set this field. Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
@@ -227,10 +227,6 @@ int misc_register(struct miscdevice * misc)
|
||||
|
||||
if (misc->minor < DYNAMIC_MINORS)
|
||||
misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7);
|
||||
if (misc->devfs_name[0] == '\0') {
|
||||
snprintf(misc->devfs_name, sizeof(misc->devfs_name),
|
||||
"misc/%s", misc->name);
|
||||
}
|
||||
dev = MKDEV(MISC_MAJOR, misc->minor);
|
||||
|
||||
misc->class = class_device_create(misc_class, NULL, dev, misc->dev,
|
||||
|
Reference in New Issue
Block a user