patch-2.3.4 linux/drivers/usb/audio.c

Next file: linux/drivers/usb/cpia.c
Previous file: linux/drivers/usb/acm.c
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.3.3/linux/drivers/usb/audio.c linux/drivers/usb/audio.c
@@ -3,6 +3,9 @@
 #include <linux/string.h>
 #include <linux/timer.h>
 #include <linux/sched.h>
+#include <linux/config.h>
+#include <linux/module.h>
+
 #include "usb.h"
 
 static int usb_audio_probe(struct usb_device *dev);
@@ -124,3 +127,15 @@
 {
 }
 
+#ifdef MODULE
+int init_module(void)
+{
+	return usb_audio_init();
+}
+
+void module_cleanup(void)
+{
+	usb_deregister(&usb_audio_driver);
+}
+
+#endif

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