diff options
Diffstat (limited to 'drivers/input/tablet/wacom_sys.c')
-rw-r--r-- | drivers/input/tablet/wacom_sys.c | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/drivers/input/tablet/wacom_sys.c b/drivers/input/tablet/wacom_sys.c index 0d269212931..79a0509882d 100644 --- a/drivers/input/tablet/wacom_sys.c +++ b/drivers/input/tablet/wacom_sys.c | |||
@@ -99,6 +99,7 @@ static int wacom_set_report(struct usb_interface *intf, u8 type, u8 id, | |||
99 | static void wacom_sys_irq(struct urb *urb) | 99 | static void wacom_sys_irq(struct urb *urb) |
100 | { | 100 | { |
101 | struct wacom *wacom = urb->context; | 101 | struct wacom *wacom = urb->context; |
102 | struct device *dev = &wacom->intf->dev; | ||
102 | int retval; | 103 | int retval; |
103 | 104 | ||
104 | switch (urb->status) { | 105 | switch (urb->status) { |
@@ -109,10 +110,12 @@ static void wacom_sys_irq(struct urb *urb) | |||
109 | case -ENOENT: | 110 | case -ENOENT: |
110 | case -ESHUTDOWN: | 111 | case -ESHUTDOWN: |
111 | /* this urb is terminated, clean up */ | 112 | /* this urb is terminated, clean up */ |
112 | dbg("%s - urb shutting down with status: %d", __func__, urb->status); | 113 | dev_dbg(dev, "%s - urb shutting down with status: %d\n", |
114 | __func__, urb->status); | ||
113 | return; | 115 | return; |
114 | default: | 116 | default: |
115 | dbg("%s - nonzero urb status received: %d", __func__, urb->status); | 117 | dev_dbg(dev, "%s - nonzero urb status received: %d\n", |
118 | __func__, urb->status); | ||
116 | goto exit; | 119 | goto exit; |
117 | } | 120 | } |
118 | 121 | ||
@@ -122,8 +125,8 @@ static void wacom_sys_irq(struct urb *urb) | |||
122 | usb_mark_last_busy(wacom->usbdev); | 125 | usb_mark_last_busy(wacom->usbdev); |
123 | retval = usb_submit_urb(urb, GFP_ATOMIC); | 126 | retval = usb_submit_urb(urb, GFP_ATOMIC); |
124 | if (retval) | 127 | if (retval) |
125 | err ("%s - usb_submit_urb failed with result %d", | 128 | dev_err(dev, "%s - usb_submit_urb failed with result %d\n", |
126 | __func__, retval); | 129 | __func__, retval); |
127 | } | 130 | } |
128 | 131 | ||
129 | static int wacom_open(struct input_dev *dev) | 132 | static int wacom_open(struct input_dev *dev) |