pinctrl/u300/coh901: let the gpio_chip register the range
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 20 Nov 2012 13:28:07 +0000 (14:28 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 21 Nov 2012 07:55:17 +0000 (08:55 +0100)
commit387923c585ac68ff51e6bf673807438b5e5fdaf3
tree1e6faaf633d5d647135ae8f86d45bd103d242fee
parent9afbefb227792a3c195085d662050dcca748f521
pinctrl/u300/coh901: let the gpio_chip register the range

Instead of having the pinctrl driver register the GPIO range
for the gpio_chip, making it necessary to instantiate the
pin controller from the GPIO driver and pass the GPIO chip as
platform data, now let the GPIO chip driver register it's own
ranges and have the pinctrl driver look up the GPIO chip from
the pinctrl core as necessary.

Reviewed-by: Stephen Warren <swarren@nvidia.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/pinctrl/pinctrl-coh901.c
drivers/pinctrl/pinctrl-u300.c