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>
This commit is contained in:
committed by
Linus Walleij
parent
d6e99abb42
commit
ef5e3eef6b
@@ -250,7 +250,7 @@ static void of_gpiochip_add_pin_range(struct gpio_chip *chip)
|
|||||||
* on the same GPIO chip.
|
* on the same GPIO chip.
|
||||||
*/
|
*/
|
||||||
ret = gpiochip_add_pin_range(chip,
|
ret = gpiochip_add_pin_range(chip,
|
||||||
pinctrl_dev_get_name(pctldev),
|
pinctrl_dev_get_devname(pctldev),
|
||||||
0, /* offset in gpiochip */
|
0, /* offset in gpiochip */
|
||||||
pinspec.args[0],
|
pinspec.args[0],
|
||||||
pinspec.args[1]);
|
pinspec.args[1]);
|
||||||
|
Reference in New Issue
Block a user