Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 361735
b: refs/heads/master
c: 740924a
h: refs/heads/master
i:
  361733: 6753fe1
  361731: ba59f00
  361727: 4b196b2
v: v3
  • Loading branch information
Richard Genoud authored and Linus Walleij committed Mar 21, 2013
1 parent 666965d commit 72bf21e
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 48a23fac5eb0030a2d578ee2bde21b6e035b3d57
refs/heads/master: 740924a267e85de09707ea158bbf594b4d8bae01
5 changes: 5 additions & 0 deletions trunk/drivers/pinctrl/pinmux.c
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,11 @@ static const char *pin_free(struct pinctrl_dev *pctldev, int pin,
}

if (!gpio_range) {
/*
* A pin should not be freed more times than allocated.
*/
if (WARN_ON(!desc->mux_usecount))
return NULL;
desc->mux_usecount--;
if (desc->mux_usecount)
return NULL;
Expand Down

0 comments on commit 72bf21e

Please sign in to comment.