Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 250504
b: refs/heads/master
c: 7388754
h: refs/heads/master
v: v3
  • Loading branch information
Ville Syrjala authored and Dmitry Torokhov committed May 5, 2011
1 parent 431fcbf commit 91b710f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 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: 9cc7c80b57c66d08e67f297169783d1f07288066
refs/heads/master: 7388754e0399d341e6d02fc7394b3727cad57371
9 changes: 6 additions & 3 deletions trunk/drivers/input/misc/ati_remote2.c
Original file line number Diff line number Diff line change
Expand Up @@ -737,14 +737,17 @@ static ssize_t ati_remote2_store_channel_mask(struct device *dev,

mutex_lock(&ati_remote2_mutex);

if (mask != ar2->channel_mask && !ati_remote2_setup(ar2, mask))
ar2->channel_mask = mask;
if (mask != ar2->channel_mask) {
r = ati_remote2_setup(ar2, mask);
if (!r)
ar2->channel_mask = mask;
}

mutex_unlock(&ati_remote2_mutex);

usb_autopm_put_interface(ar2->intf[0]);

return count;
return r ? r : count;
}

static ssize_t ati_remote2_show_mode_mask(struct device *dev,
Expand Down

0 comments on commit 91b710f

Please sign in to comment.