summaryrefslogtreecommitdiffstats
path: root/include/linux/pinctrl/pinctrl.h
diff options
context:
space:
mode:
authorViresh Kumar <viresh.kumar@linaro.org>2012-10-27 15:21:35 +0530
committerLinus Walleij <linus.walleij@linaro.org>2012-11-11 19:05:59 +0100
commit7e10ee68f8ccc62e0934ff02f39ce541f3879844 (patch)
treed83e89f5d73be6f9b90c55faf526a064699d0b02 /include/linux/pinctrl/pinctrl.h
parentafa538c2bf00cf6cd28fc6b5fcea1a75894228a0 (diff)
downloadblackbird-op-linux-7e10ee68f8ccc62e0934ff02f39ce541f3879844.tar.gz
blackbird-op-linux-7e10ee68f8ccc62e0934ff02f39ce541f3879844.zip
Revert "pinctrl: remove pinctrl_remove_gpio_range"
This reverts earlier commit which removed pinctrl_remove_gpio_range(), because at that time there weren't any more users of that routine. It was removed as the removal of ranges was done in unregister of pinctrl. But as we are now registering stuff from gpiolib, we may remove and insert a gpio module multiple times. So, we need this routine again. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'include/linux/pinctrl/pinctrl.h')
-rw-r--r--include/linux/pinctrl/pinctrl.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/include/linux/pinctrl/pinctrl.h b/include/linux/pinctrl/pinctrl.h
index 7d087f03e91e..eda04674633d 100644
--- a/include/linux/pinctrl/pinctrl.h
+++ b/include/linux/pinctrl/pinctrl.h
@@ -134,6 +134,8 @@ extern void pinctrl_add_gpio_range(struct pinctrl_dev *pctldev,
extern void pinctrl_add_gpio_ranges(struct pinctrl_dev *pctldev,
struct pinctrl_gpio_range *ranges,
unsigned nranges);
+extern void pinctrl_remove_gpio_range(struct pinctrl_dev *pctldev,
+ struct pinctrl_gpio_range *range);
extern const char *pinctrl_dev_get_name(struct pinctrl_dev *pctldev);
extern void *pinctrl_dev_get_drvdata(struct pinctrl_dev *pctldev);
#else
OpenPOWER on IntegriCloud