aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pinctrl
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pinctrl')
-rw-r--r--drivers/pinctrl/spear/pinctrl-plgpio.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/pinctrl/spear/pinctrl-plgpio.c b/drivers/pinctrl/spear/pinctrl-plgpio.c
index 1044ad3f3c86..cf6d9c204936 100644
--- a/drivers/pinctrl/spear/pinctrl-plgpio.c
+++ b/drivers/pinctrl/spear/pinctrl-plgpio.c
@@ -243,7 +243,8 @@ static int plgpio_request(struct gpio_chip *chip, unsigned offset)
243 return 0; 243 return 0;
244 244
245err1: 245err1:
246 clk_disable_unprepare(plgpio->clk); 246 if (!IS_ERR(plgpio->clk))
247 clk_disable_unprepare(plgpio->clk);
247err0: 248err0:
248 pinctrl_free_gpio(gpio); 249 pinctrl_free_gpio(gpio);
249 return ret; 250 return ret;