]> git.hungrycats.org Git - linux/commitdiff
[PATCH] fix non-existent /dev/adb
authorAndrew Morton <akpm@osdl.org>
Sat, 29 May 2004 03:41:26 +0000 (20:41 -0700)
committerLinus Torvalds <torvalds@ppc970.osdl.org>
Sat, 29 May 2004 03:41:26 +0000 (20:41 -0700)
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: Benjamin Herrenschmidt <benh@kernel.crashing.org>
Signed-off-by: Colin Leroy <colin@colino.net>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
drivers/macintosh/adb.c

index 5916de82fbe81efcdc08e7bcefdabf1259bffd15..5be1364258f2e595f0633bd5ac15ec3b2160b217 100644 (file)
@@ -900,6 +900,9 @@ adbdev_init(void)
                printk(KERN_ERR "adb: unable to get major %d\n", ADB_MAJOR);
                return;
        }
+
+       devfs_mk_cdev(MKDEV(ADB_MAJOR, 0), S_IFCHR | S_IRUSR | S_IWUSR, "adb");
+
        adb_dev_class = class_simple_create(THIS_MODULE, "adb");
        if (IS_ERR(adb_dev_class)) {
                return;