patch-2.3.4 linux/drivers/usb/hub.c
Next file: linux/drivers/usb/inits.h
Previous file: linux/drivers/usb/cpia.c
Back to the patch index
Back to the overall index
- Lines: 51
- Date:
Mon May 31 09:01:50 1999
- Orig file:
v2.3.3/linux/drivers/usb/hub.c
- Orig date:
Sat May 15 23:46:03 1999
diff -u --recursive --new-file v2.3.3/linux/drivers/usb/hub.c linux/drivers/usb/hub.c
@@ -1,10 +1,6 @@
/*
* USB hub driver.
*
- * This is horrible, it knows about the UHCI driver
- * internals, but it's just meant as a rough example,
- * let's do the virtualization later when this works.
- *
* (C) Copyright 1999 Linus Torvalds
* (C) Copyright 1999 Johannes Erdfelt
*/
@@ -14,15 +10,14 @@
#include <linux/list.h>
#include <linux/malloc.h>
#include <linux/smp_lock.h>
+#include <linux/config.h>
+#include <linux/module.h>
#include <asm/spinlock.h>
#include "usb.h"
-#include "uhci.h"
#include "hub.h"
-extern struct usb_operations uhci_device_operations;
-
/* Wakes up khubd */
static DECLARE_WAIT_QUEUE_HEAD(usb_hub_wait);
static spinlock_t hub_event_lock = SPIN_LOCK_UNLOCKED;
@@ -413,10 +408,20 @@
return 0;
}
-void hub_cleanup(void)
+void usb_hub_cleanup(void)
{
if (khubd_pid >= 0)
kill_proc(khubd_pid, SIGINT, 1);
usb_deregister(&hub_driver);
}
+
+#ifdef MODULE
+int init_module(void){
+ return usb_hub_init();
+}
+
+void module_cleanup(void){
+ usb_hub_cleanup();
+}
+#endif
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)