fix non-existent /dev/adb in 2.6.7-rc1
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 ;)
Signed-off-by Benjamin Herrenschmidt <[email protected]>
Signed-off-by Colin Leroy <[email protected]>
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]>