Hi,

this patch applies to 2.5.2-pre11 and uses modern module usage
counting and removes code dead in a V4L driver.

        Regards
                Oliver

--- dsbr100.c.alt       Mon Jan 14 21:33:09 2002
+++ dsbr100.c   Mon Jan 14 21:35:51 2002
@@ -101,6 +101,7 @@
 
 static struct video_device usb_dsbr100_radio=
 {
+       owner:          THIS_MODULE,
        name:           "D-Link DSB R-100 USB radio",
        type:           VID_TYPE_TUNER,
        hardware:       VID_HARDWARE_AZTECH,
@@ -119,6 +120,7 @@
 MODULE_DEVICE_TABLE (usb, usb_dsbr100_table);
 
 static struct usb_driver usb_dsbr100_driver = {
+       owner:          THIS_MODULE,
        name:           "dsbr100",
        probe:          usb_dsbr100_probe,
        disconnect:     usb_dsbr100_disconnect,
@@ -316,13 +318,8 @@
                warn("radio not initialised");
                return -EAGAIN;
        }
-       if(users)
-       {
-               warn("radio in use");
-               return -EBUSY;
-       }
+
        users++;
-       MOD_INC_USE_COUNT;
        if (dsbr100_start(radio)<0)
                warn("radio did not start up properly");
        dsbr100_setfreq(radio,radio->curfreq);
@@ -337,7 +334,6 @@
                return;
        users--;
        dsbr100_stop(radio);
-       MOD_DEC_USE_COUNT;
 }
 
 static int __init dsbr100_init(void)
@@ -374,3 +370,4 @@
 Sigh.  Of course, I am one of the ts=2 heretics, but Linus' wish is
 my command.
 */
+

_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to