Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d463f82d authored by Daniel Mack's avatar Daniel Mack Committed by Linus Walleij
Browse files

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: default avatarDaniel Mack <zonque@gmail.com>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 37e49014
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;
}