From d463f82d22f90096d1352de3837b1602a3410b5d Mon Sep 17 00:00:00 2001 From: Daniel Mack Date: Fri, 26 Apr 2013 18:57:02 +0200 Subject: [PATCH] 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 Signed-off-by: Linus Walleij --- drivers/pinctrl/core.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/pinctrl/core.c b/drivers/pinctrl/core.c index c3d222ed39a2..5327f35d9b5c 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; } -- 2.20.1