[PATCH] fix non-existent /dev/adb in 2.6.7-rc1

From: Benjamin Herrenschmidt
Date: Fri May 28 2004 - 04:32:03 EST


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@xxxxxxxxxxxxxxxxxxx>
Signed-off-by: Colin Leroy <colin@xxxxxxxxxx>

--- drivers/macintosh/adb.c.orig 2004-05-25 21:08:10.000000000 +0200
+++ drivers/macintosh/adb.c 2004-05-28 09:08:56.580390376 +0200
@@ -900,6 +900,9 @@
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;
--
Benjamin Herrenschmidt <benh@xxxxxxxxxxxxxxxxxxx>

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/