pinctrl: sh-pfc: Stop calling gpiochip_add_pin_range() on DT platforms
authorGeert Uytterhoeven <geert+renesas@glider.be>
Tue, 4 Aug 2015 13:55:17 +0000 (15:55 +0200)
committerGeert Uytterhoeven <geert+renesas@glider.be>
Fri, 2 Oct 2015 07:53:16 +0000 (09:53 +0200)
commit18fab3995e8a6c4e3ffe2adced0ffa76eebdc989
tree58f12d57e59e1ed1c8aa968f99f6f955048f2d52
parent6ff33f3902c3b1c5d0db6b1e2c70b6d76fba357f
pinctrl: sh-pfc: Stop calling gpiochip_add_pin_range() on DT platforms

On platforms where the PFC/GPIO controller is instantiated from DT, the
mapping between GPIOs and pins is set up using the "gpio-ranges"
property in DT.

Hence stop setting up the mapping from C code on DT platforms.
This code is still used for SH or ARM-legacy platforms.

Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
drivers/pinctrl/sh-pfc/gpio.c