Commit 3285df44 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] fix non-existent /dev/adb

From: Benjamin Herrenschmidt <benh@kernel.crashing.org>

This patch fixes the lack of /dev/adb in kernel 2.6.7-rc1.  The call to
devfs_mk_cdev() has probably been removed too soon.  Hope this one is
better than the last one ;)
Signed-off-by: default avatarBenjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: default avatarColin Leroy <colin@colino.net>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent 320565ce
...@@ -900,6 +900,9 @@ adbdev_init(void) ...@@ -900,6 +900,9 @@ adbdev_init(void)
printk(KERN_ERR "adb: unable to get major %d\n", ADB_MAJOR); printk(KERN_ERR "adb: unable to get major %d\n", ADB_MAJOR);
return; return;
} }
devfs_mk_cdev(MKDEV(ADB_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "adb");
adb_dev_class = class_simple_create(THIS_MODULE, "adb"); adb_dev_class = class_simple_create(THIS_MODULE, "adb");
if (IS_ERR(adb_dev_class)) { if (IS_ERR(adb_dev_class)) {
return; return;
......
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