diff options
author | Haojian Zhuang <haojian.zhuang@linaro.org> | 2013-01-18 02:31:07 -0500 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-01-21 09:16:22 -0500 |
commit | ef5e3eef6b6b22eb4ad7a893d2299418808667ba (patch) | |
tree | 0ba205c5fbb05bb8d08e1b99becf7da02923df5a | |
parent | d6e99abb424a916ecbb127dba065a379b460a062 (diff) |
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>
-rw-r--r-- | drivers/gpio/gpiolib-of.c | 2 |
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) | |||
250 | * on the same GPIO chip. | 250 | * on the same GPIO chip. |
251 | */ | 251 | */ |
252 | ret = gpiochip_add_pin_range(chip, | 252 | ret = gpiochip_add_pin_range(chip, |
253 | pinctrl_dev_get_name(pctldev), | 253 | pinctrl_dev_get_devname(pctldev), |
254 | 0, /* offset in gpiochip */ | 254 | 0, /* offset in gpiochip */ |
255 | pinspec.args[0], | 255 | pinspec.args[0], |
256 | pinspec.args[1]); | 256 | pinspec.args[1]); |