]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: rtl8150 updated
authorPetko Manolov <petkan@users.sourceforge.net>
Wed, 24 Jul 2002 03:39:13 +0000 (20:39 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 24 Jul 2002 03:39:13 +0000 (20:39 -0700)
  new vendor/device ID;
  redundant check removed from probe();

drivers/usb/net/rtl8150.c

index 89645c1184804cd32c9242a37fdbae98c76979ca..24121afaafedb28249a40124e31a65cbb3b6ff24 100644 (file)
@@ -21,7 +21,7 @@
 #include <asm/uaccess.h>
 
 /* Version Information */
-#define DRIVER_VERSION "v0.5.4 (2002/04/11)"
+#define DRIVER_VERSION "v0.5.5 (2002/07/22)"
 #define DRIVER_AUTHOR "Petko Manolov <petkan@users.sourceforge.net>"
 #define DRIVER_DESC "rtl8150 based usb-ethernet driver"
 
 
 /* Define these values to match your device */
 #define VENDOR_ID_REALTEK              0x0bda
+#define        VENDOR_ID_MELCO                 0x0411
+
 #define PRODUCT_ID_RTL8150             0x8150
+#define        PRODUCT_ID_LUAKTX               0x0012
 
 /* table of devices that work with this driver */
 static struct usb_device_id rtl8150_table[] = {
        {USB_DEVICE(VENDOR_ID_REALTEK, PRODUCT_ID_RTL8150)},
+       {USB_DEVICE(VENDOR_ID_MELCO, PRODUCT_ID_LUAKTX)},
        {}
 };
 
@@ -729,11 +733,6 @@ static void *rtl8150_probe(struct usb_device *udev, unsigned int ifnum,
                err("usb_set_configuration() failed");
                return NULL;
        }
-       if ((udev->descriptor.idVendor != VENDOR_ID_REALTEK) ||
-           (udev->descriptor.idProduct != PRODUCT_ID_RTL8150)) {
-               err("Not the one we are interested about");
-               return NULL;
-       }
        dev = kmalloc(sizeof(rtl8150_t), GFP_KERNEL);
        if (!dev) {
                err("Out of memory");