Commit 93daaa40 authored by Todd E. Johnson's avatar Todd E. Johnson Committed by Greg Kroah-Hartman

[PATCH] USB: update for mtouchusb

The attached patch for the 3M Touch Systems Capacitive controller. (again)

Quick list of changes:

   * decrease mtouch->open counter in the event of a urb submission
     failure

The changes are due to comments Oliver Neukum's comments on the
touchkit.c driver.  Good catch!  Sorry I missed it.

http://marc.theaimsgroup.com/?l=linux-usb-devel&m=108343028201159&w=2
parent d351c51b
...@@ -142,8 +142,10 @@ static int mtouchusb_open (struct input_dev *input) ...@@ -142,8 +142,10 @@ static int mtouchusb_open (struct input_dev *input)
mtouch->irq->dev = mtouch->udev; mtouch->irq->dev = mtouch->udev;
if (usb_submit_urb (mtouch->irq, GFP_ATOMIC)) if (usb_submit_urb (mtouch->irq, GFP_ATOMIC)) {
mtouch->open--;
return -EIO; return -EIO;
}
return 0; return 0;
} }
......
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