]> git.hungrycats.org Git - linux/commitdiff
[PATCH] USB: remove configuration change from pegasus.c
authorOliver Neukum <oliver@neukum.org>
Fri, 11 Apr 2003 05:15:15 +0000 (22:15 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Fri, 11 Apr 2003 05:15:15 +0000 (22:15 -0700)
the driver should not mess with configurations here.

drivers/usb/net/pegasus.c

index 565efde4595f8b84afdcf62755dc6533bf540dfa..c2cdaaa8ef18096253e3fb56d4ceed95458efcd5 100644 (file)
@@ -1171,10 +1171,6 @@ static int pegasus_probe(struct usb_interface *intf,
        pegasus_t *pegasus;
        int dev_index = id - pegasus_ids;
 
-       if (usb_set_configuration(dev, dev->config[0].desc.bConfigurationValue)) {
-               err("usb_set_configuration() failed");
-               return -ENODEV;
-       }
        if (!(pegasus = kmalloc(sizeof (struct pegasus), GFP_KERNEL))) {
                err("out of memory allocating device structure");
                return -ENOMEM;