patch-2.2.8 linux/drivers/char/mem.c

Next file: linux/drivers/char/planb.c
Previous file: linux/drivers/char/lp.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.2.7/linux/drivers/char/mem.c linux/drivers/char/mem.c
@@ -57,7 +57,10 @@
 #ifdef CONFIG_USB_OHCI
 int ohci_init(void);
 #endif
-
+#ifdef CONFIG_USB_OHCI_HCD
+int ohci_hcd_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)
 {
@@ -605,11 +608,16 @@
 	if (register_chrdev(MEM_MAJOR,"mem",&memory_fops))
 		printk("unable to get major %d for memory devs\n", MEM_MAJOR);
 	rand_initialize();
+#ifdef CONFIG_USB
 #ifdef CONFIG_USB_UHCI
 	uhci_init();
 #endif
 #ifdef CONFIG_USB_OHCI
 	ohci_init();
+#endif
+#ifdef CONFIG_USB_OHCI_HCD
+        ohci_hcd_init(); 
+#endif
 #endif
 #if defined (CONFIG_FB)
 	fbmem_init();

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)