summaryrefslogtreecommitdiffstats
path: root/drivers/usb/input/itmtouch.c
diff options
context:
space:
mode:
authorDmitry Torokhov <dtor_core@ameritech.net>2005-05-29 02:29:38 -0500
committerDmitry Torokhov <dtor_core@ameritech.net>2005-05-29 02:29:38 -0500
commit65cde54b8b0299d7e46b8705338b01d1e44a5eb0 (patch)
tree2aa4c3ab303fd19440c636edaecdb0976f9d82c7 /drivers/usb/input/itmtouch.c
parent3108d42de4da0823feb37a55db62acdc01554625 (diff)
downloadblackbird-op-linux-65cde54b8b0299d7e46b8705338b01d1e44a5eb0.tar.gz
blackbird-op-linux-65cde54b8b0299d7e46b8705338b01d1e44a5eb0.zip
Input: remove user counters from drivers/usb/input since input
core takes care of calling open and close methods only when needed. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/usb/input/itmtouch.c')
-rw-r--r--drivers/usb/input/itmtouch.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/drivers/usb/input/itmtouch.c b/drivers/usb/input/itmtouch.c
index 5122a7f701a9..47dec6a1b344 100644
--- a/drivers/usb/input/itmtouch.c
+++ b/drivers/usb/input/itmtouch.c
@@ -137,15 +137,10 @@ static int itmtouch_open(struct input_dev *input)
{
struct itmtouch_dev *itmtouch = input->private;
- if (itmtouch->users++)
- return 0;
-
itmtouch->readurb->dev = itmtouch->usbdev;
- if (usb_submit_urb(itmtouch->readurb, GFP_KERNEL)) {
- itmtouch->users--;
+ if (usb_submit_urb(itmtouch->readurb, GFP_KERNEL))
return -EIO;
- }
return 0;
}
@@ -154,8 +149,7 @@ static void itmtouch_close(struct input_dev *input)
{
struct itmtouch_dev *itmtouch = input->private;
- if (!--itmtouch->users)
- usb_kill_urb(itmtouch->readurb);
+ usb_kill_urb(itmtouch->readurb);
}
static int itmtouch_probe(struct usb_interface *intf, const struct usb_device_id *id)
OpenPOWER on IntegriCloud