gpio: use pinctrl device name for add range
authorHaojian Zhuang <haojian.zhuang@linaro.org>
Fri, 18 Jan 2013 07:31:07 +0000 (15:31 +0800)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 21 Jan 2013 14:16:22 +0000 (15:16 +0100)
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>
drivers/gpio/gpiolib-of.c

index d542a141811a00b2f49589ba8db583b7b30c0ac0..25b1dbe8921d62705c3e76d10d5bb08437bb7d1b 100644 (file)
@@ -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]);