]> git.hungrycats.org Git - linux/commitdiff
[PATCH] char dev request_module fix
authorAndrew Morton <akpm@osdl.org>
Sun, 9 Nov 2003 23:18:18 +0000 (15:18 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sun, 9 Nov 2003 23:18:18 +0000 (15:18 -0800)
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>".

fs/char_dev.c

index 49e5484dfb6a11c6dd7a8d128983510630ca5f1d..5f4ab3ac1296478af824be83b6cf9d67188ae575 100644 (file)
@@ -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)
 {
-       request_module("char-major-%d", MAJOR(dev));
+       request_module("char-major-%d-%d", MAJOR(dev), MINOR(dev));
        return NULL;
 }