Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 303686
b: refs/heads/master
c: 8b0725c
h: refs/heads/master
v: v3
  • Loading branch information
Greg Kroah-Hartman committed May 2, 2012
1 parent 485141f commit 93d8a2f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c4f0bbcd1d53dc40e2ac56f2ab116f9ba612a8ee
refs/heads/master: 8b0725c0593871106d24ed94e7a14cf2316cb21d
10 changes: 6 additions & 4 deletions trunk/drivers/input/misc/powermate.c
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ static void powermate_config_complete(struct urb *urb);
static void powermate_irq(struct urb *urb)
{
struct powermate_device *pm = urb->context;
struct device *dev = &pm->input->dev;
int retval;

switch (urb->status) {
Expand All @@ -95,10 +96,12 @@ static void powermate_irq(struct urb *urb)
case -ENOENT:
case -ESHUTDOWN:
/* this urb is terminated, clean up */
dbg("%s - urb shutting down with status: %d", __func__, urb->status);
dev_dbg(dev, "%s - urb shutting down with status: %d\n",
__func__, urb->status);
return;
default:
dbg("%s - nonzero urb status received: %d", __func__, urb->status);
dev_dbg(dev, "%s - nonzero urb status received: %d\n",
__func__, urb->status);
goto exit;
}

Expand All @@ -110,8 +113,7 @@ static void powermate_irq(struct urb *urb)
exit:
retval = usb_submit_urb (urb, GFP_ATOMIC);
if (retval)
dev_err(&pm->input->dev,
"%s - usb_submit_urb failed with result: %d\n",
dev_err(dev, "%s - usb_submit_urb failed with result: %d\n",
__func__, retval);
}

Expand Down

0 comments on commit 93d8a2f

Please sign in to comment.