Commit a643ce4f authored by Alan Stern's avatar Alan Stern Committed by Greg Kroah-Hartman

[PATCH] USB: Small change to CPiA USB driver

Only one aspect of it is notable: The CPiA USB
driver calls usb_driver_release_interface() during its disconnect()
routine.  That doesn't appear to be necessary, since it didn't call
usb_driver_claim_interface() beforehand and since the interface will be
released automatically when disconnect() returns.
parent f1b146c6
......@@ -499,7 +499,7 @@ static int cpia_probe(struct usb_interface *intf,
if (udev->descriptor.bNumConfigurations != 1)
return -ENODEV;
interface = &intf->altsetting[0];
interface = intf->cur_altsetting;
printk(KERN_INFO "USB CPiA camera found\n");
......@@ -620,8 +620,6 @@ static void cpia_disconnect(struct usb_interface *intf)
wake_up_interruptible(&ucpia->wq_stream);
udev = interface_to_usbdev(intf);
usb_driver_release_interface(&cpia_driver,
udev->actconfig->interface[0]);
ucpia->curbuff = ucpia->workbuff = NULL;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment