pinctrl: tegra: Only set the gpio range if needed
authorTomeu Vizoso <tomeu.vizoso@collabora.com>
Tue, 14 Jul 2015 08:29:55 +0000 (10:29 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Aug 2015 14:24:33 +0000 (16:24 +0200)
commit9462510ce31e2b91156bdcc33e4c737e6768e5f8
tree244f98dc83a79d26d7f045d9eeab153512ab511b
parentd770e558e21961ad6cfdf0ff7df0eb5d7d4f0754
pinctrl: tegra: Only set the gpio range if needed

If the gpio DT node has the gpio-ranges property, the range will be
added by the gpio core and doesn't need to be added by the pinctrl
driver.

By having the gpio-ranges property, we have an explicit dependency from
the gpio node to the pinctrl node and we can stop using the deprecated
pinctrl_add_gpio_range() function.

Signed-off-by: Tomeu Vizoso <tomeu.vizoso@collabora.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/pinctrl/pinctrl-tegra.c