pinctrl: intel: unlock on error in intel_config_set_pull()
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 7 Feb 2017 13:20:08 +0000 (16:20 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 13 Feb 2017 14:42:26 +0000 (15:42 +0100)
commitaa1dd80f80ccf3a47227ab42625e7bbacd5ff272
treedb6c9ea6355564f0bdbe17b4fa5fc0bca0209ab4
parent9ec1a286d0b3c13f50c96e00e5890bc17a82492f
pinctrl: intel: unlock on error in intel_config_set_pull()

We need to unlock before returning -EINVAL on this error path.

Fixes: 04cc058f0c52 ("pinctrl: intel: Add support for 1k additional pull-down")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/intel/pinctrl-intel.c