Commit ee61ba11 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] char dev request_module fix

From: Rusty Russell <rusty@rustcorp.com.au>

Module aliases are all of form "char-major-<major>-<minor>".  char_dev.c
calls request_module with "char-major-<major>".
parent 15d7e480
...@@ -434,7 +434,7 @@ void cdev_init(struct cdev *cdev, struct file_operations *fops) ...@@ -434,7 +434,7 @@ void cdev_init(struct cdev *cdev, struct file_operations *fops)
static struct kobject *base_probe(dev_t dev, int *part, void *data) static struct kobject *base_probe(dev_t dev, int *part, void *data)
{ {
request_module("char-major-%d", MAJOR(dev)); request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev));
return NULL; return NULL;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment