Hi everyone,

Attached is a small patch for those using the 2.3.99-pre6-2.2.14 backport
and who are wanting to include the ov511 driver directly into the kernel.

The patch is optional if you compile the ov511 driver as a module.

BTW, thanks Vojtech for the backport.  And many thanks to all the usb
developers.  I'm sure I speak for all Linux usb users when I say that we
all appreciate your hard work.


Regards,
Patrick D'Cruze
[EMAIL PROTECTED]

--- linux/drivers/usb/usb-core.c.orig   Fri Apr 28 21:20:37 2000
+++ linux/drivers/usb/usb-core.c        Fri Apr 28 22:38:17 2000
@@ -45,7 +45,7 @@
 int wacom_init_module(void);
 int wmforce_init_module(void);
 
-int usb_cpia_init(void);
+int usb_ov511_init(void);
 int usb_audio_init(void);
 int usb_ibmcam_init(void);
 int dabusb_init(void);
@@ -86,8 +86,8 @@
        usb_hub_init();
 
 #ifndef CONFIG_USB_MODULE
-#ifdef CONFIG_VIDEO_CPIA_USB
-       usb_cpia_init();
+#ifdef CONFIG_USB_OV511
+       usb_ov511_init();
 #endif
 #ifdef CONFIG_USB_AUDIO
        usb_audio_init();
--- linux/drivers/usb/ov511.c.orig      Fri Apr 28 23:45:36 2000
+++ linux/drivers/usb/ov511.c   Fri Apr 28 23:44:26 2000
@@ -2332,7 +2332,7 @@
        { NULL, NULL }
 };
 
-static int __init usb_ov511_init(void)
+int __init usb_ov511_init(void)
 {
        if (usb_register(&ov511_driver) < 0)
                return -1;
@@ -2342,7 +2342,7 @@
        return 0;
 }
 
-static void __exit usb_ov511_exit(void)
+void __exit usb_ov511_exit(void)
 {
        usb_deregister(&ov511_driver);
        info("ov511 driver deregistered");

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to