diff options
author | Daniel Mack <zonque@gmail.com> | 2013-04-26 18:57:02 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-04-30 13:02:04 +0200 |
commit | d463f82d22f90096d1352de3837b1602a3410b5d (patch) | |
tree | e7df3f5a19d4f1dcf8c5d4a98de17076a7ebea29 /drivers/pinctrl | |
parent | 37e4901449da76726e87ab8c3b659769d0031714 (diff) | |
download | linux-3.10-d463f82d22f90096d1352de3837b1602a3410b5d.tar.gz linux-3.10-d463f82d22f90096d1352de3837b1602a3410b5d.tar.bz2 linux-3.10-d463f82d22f90096d1352de3837b1602a3410b5d.zip |
pinctrl: fix mutex deadlock in get_pinctrl_dev_from_of_node()
This obvious bug was introduced by d755910b7 ("pinctrl: move subsystem
mutex to pinctrl_dev struct").
Signed-off-by: Daniel Mack <zonque@gmail.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r-- | drivers/pinctrl/core.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index c3d222ed39a..5327f35d9b5 100644 --- a/drivers/pinctrl/core.c +++ b/drivers/pinctrl/core.c @@ -129,7 +129,7 @@ struct pinctrl_dev *get_pinctrl_dev_from_of_node(struct device_node *np) return pctldev; } - mutex_lock(&pinctrldev_list_mutex); + mutex_unlock(&pinctrldev_list_mutex); return NULL; } |