diff options
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r-- | drivers/char/misc.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index f1fdd84c5dc5..dfe1cede3916 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
@@ -227,10 +227,6 @@ int misc_register(struct miscdevice * misc) | |||
227 | 227 | ||
228 | if (misc->minor < DYNAMIC_MINORS) | 228 | if (misc->minor < DYNAMIC_MINORS) |
229 | misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7); | 229 | misc_minors[misc->minor >> 3] |= 1 << (misc->minor & 7); |
230 | if (misc->devfs_name[0] == '\0') { | ||
231 | snprintf(misc->devfs_name, sizeof(misc->devfs_name), | ||
232 | "misc/%s", misc->name); | ||
233 | } | ||
234 | dev = MKDEV(MISC_MAJOR, misc->minor); | 230 | dev = MKDEV(MISC_MAJOR, misc->minor); |
235 | 231 | ||
236 | misc->class = class_device_create(misc_class, NULL, dev, misc->dev, | 232 | misc->class = class_device_create(misc_class, NULL, dev, misc->dev, |