patch-2.1.129 linux/drivers/char/mem.c
Next file: linux/drivers/char/misc.c
Previous file: linux/drivers/char/lp_m68k.c
Back to the patch index
Back to the overall index
- Lines: 32
- Date:
Mon Nov 16 10:32:58 1998
- Orig file:
v2.1.128/linux/drivers/char/mem.c
- Orig date:
Sun Nov 8 14:02:55 1998
diff -u --recursive --new-file v2.1.128/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -53,6 +53,9 @@
#ifdef CONFIG_MDA_CONSOLE
extern void mda_console_init(void);
#endif
+#if defined(CONFIG_PPC) || defined(CONFIG_MAC)
+extern void adbdev_init(void);
+#endif
static ssize_t do_write_mem(struct file * file, void *p, unsigned long realp,
const char * buf, size_t count, loff_t *ppos)
@@ -509,9 +512,11 @@
case 3:
filp->f_op = &null_fops;
break;
+#ifndef CONFIG_PPC
case 4:
filp->f_op = &port_fops;
break;
+#endif
case 5:
filp->f_op = &zero_fops;
break;
@@ -595,6 +600,9 @@
#endif
#ifdef CONFIG_VIDEO_BT848
i2c_init();
+#endif
+#if defined(CONFIG_PPC) || defined(CONFIG_MAC)
+ adbdev_init();
#endif
#ifdef CONFIG_VIDEO_DEV
videodev_init();
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen, slshen@lbl.gov