summaryrefslogtreecommitdiffstats
path: root/drivers/gpio
diff options
context:
space:
mode:
authorHaojian Zhuang <haojian.zhuang@linaro.org>2013-01-18 15:31:07 +0800
committerLinus Walleij <linus.walleij@linaro.org>2013-01-21 15:16:22 +0100
commitef5e3eef6b6b22eb4ad7a893d2299418808667ba (patch)
tree0ba205c5fbb05bb8d08e1b99becf7da02923df5a /drivers/gpio
parentd6e99abb424a916ecbb127dba065a379b460a062 (diff)
downloadlinux-ef5e3eef6b6b22eb4ad7a893d2299418808667ba.tar.bz2
gpio: use pinctrl device name for add range
gpiochip_add_pin_range() needs pinctrl device name as parameter. Currently the parameter is pinctrl description name. So fix it. Signed-off-by: Haojian Zhuang <haojian.zhuang@linaro.org> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Diffstat (limited to 'drivers/gpio')
-rw-r--r--drivers/gpio/gpiolib-of.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib-of.c b/drivers/gpio/gpiolib-of.c
index d542a141811a..25b1dbe8921d 100644
--- a/drivers/gpio/gpiolib-of.c
+++ b/drivers/gpio/gpiolib-of.c
@@ -250,7 +250,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
* on the same GPIO chip.
*/
ret = gpiochip_add_pin_range(chip,
- pinctrl_dev_get_name(pctldev),
+ pinctrl_dev_get_devname(pctldev),
0, /* offset in gpiochip */
pinspec.args[0],
pinspec.args[1]);