patch-2.3.46 linux/drivers/macintosh/adb.c
Next file: linux/drivers/macintosh/via-pmu68k.c
Previous file: linux/drivers/macintosh/adb-iop.c
Back to the patch index
Back to the overall index
- Lines: 21
- Date:
Wed Feb 16 15:42:05 2000
- Orig file:
v2.3.45/linux/drivers/macintosh/adb.c
- Orig date:
Thu Feb 10 17:11:09 2000
diff -u --recursive --new-file v2.3.45/linux/drivers/macintosh/adb.c linux/drivers/macintosh/adb.c
@@ -22,6 +22,7 @@
#include <linux/malloc.h>
#include <linux/module.h>
#include <linux/fs.h>
+#include <linux/devfs_fs_kernel.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/adb.h>
@@ -664,6 +665,11 @@
return;
#endif
- if (register_chrdev(ADB_MAJOR, "adb", &adb_fops))
+ if (devfs_register_chrdev(ADB_MAJOR, "adb", &adb_fops))
printk(KERN_ERR "adb: unable to get major %d\n", ADB_MAJOR);
+ else
+ devfs_register (NULL, "adb", 0, DEVFS_FL_NONE,
+ ADB_MAJOR, 0,
+ S_IFCHR | S_IRUSR | S_IWUSR, 0, 0,
+ &adb_fops, NULL);
}
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)