diff options
Diffstat (limited to 'drivers/char/misc.c')
-rw-r--r-- | drivers/char/misc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/char/misc.c b/drivers/char/misc.c index 0c8375165e29..3e4c0414a01a 100644 --- a/drivers/char/misc.c +++ b/drivers/char/misc.c | |||
@@ -234,7 +234,7 @@ int misc_register(struct miscdevice * misc) | |||
234 | } | 234 | } |
235 | dev = MKDEV(MISC_MAJOR, misc->minor); | 235 | dev = MKDEV(MISC_MAJOR, misc->minor); |
236 | 236 | ||
237 | misc->class = class_device_create(misc_class, dev, misc->dev, | 237 | misc->class = class_device_create(misc_class, NULL, dev, misc->dev, |
238 | "%s", misc->name); | 238 | "%s", misc->name); |
239 | if (IS_ERR(misc->class)) { | 239 | if (IS_ERR(misc->class)) { |
240 | err = PTR_ERR(misc->class); | 240 | err = PTR_ERR(misc->class); |