Skip to contentSkip to conversation

fix non-existent /dev/adb in 2.6.7-rc1

PATCH New Benjamin Herrenschmidt 1 participant 1 message May 28, 2004

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 fix non-existent /dev/adb in 2.6.7-rc1

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 ;)

macintosh/adb.c renamed from macintosh/adb.c.orig +3 -0
@@ -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;
Signature · 1 line
Benjamin Herrenschmidt <[email protected]>