From: Haojian Zhuang Date: Fri, 18 Jan 2013 07:31:07 +0000 (+0800) Subject: gpio: use pinctrl device name for add range X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=ef5e3eef6b6b22eb4ad7a893d2299418808667ba;p=linux-beck.git 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 Signed-off-by: Linus Walleij --- 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]);