Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 202173
b: refs/heads/master
c: 1719ec4
h: refs/heads/master
i:
  202171: 0db9d6f
v: v3
  • Loading branch information
Luo Jinghua authored and Dmitry Torokhov committed Jun 8, 2010
1 parent 02a6f06 commit df745fd
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 8 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: 4aa5bbeca0fe561181e8fba089cd96e449ee5fca
refs/heads/master: 1719ec4136035472d3e83a373908dd1b186dbc0b
21 changes: 14 additions & 7 deletions trunk/drivers/input/mouse/bcm5974.c
Original file line number Diff line number Diff line change
Expand Up @@ -580,23 +580,30 @@ static void bcm5974_irq_trackpad(struct urb *urb)
*/
static int bcm5974_start_traffic(struct bcm5974 *dev)
{
if (bcm5974_wellspring_mode(dev, true)) {
int error;

error = bcm5974_wellspring_mode(dev, true);
if (error) {
dprintk(1, "bcm5974: mode switch failed\n");
goto error;
goto err_out;
}

if (usb_submit_urb(dev->bt_urb, GFP_KERNEL))
goto error;
error = usb_submit_urb(dev->bt_urb, GFP_KERNEL);
if (error)
goto err_reset_mode;

if (usb_submit_urb(dev->tp_urb, GFP_KERNEL))
error = usb_submit_urb(dev->tp_urb, GFP_KERNEL);
if (error)
goto err_kill_bt;

return 0;

err_kill_bt:
usb_kill_urb(dev->bt_urb);
error:
return -EIO;
err_reset_mode:
bcm5974_wellspring_mode(dev, false);
err_out:
return error;
}

static void bcm5974_pause_traffic(struct bcm5974 *dev)
Expand Down

0 comments on commit df745fd

Please sign in to comment.