gpio: davinci: Use unique labels for each gpio chip
authorAxel Haslam <ahaslam@baylibre.com>
Thu, 3 Nov 2016 11:34:10 +0000 (12:34 +0100)
committerLinus Walleij <linus.walleij@linaro.org>
Wed, 9 Nov 2016 08:13:35 +0000 (09:13 +0100)
commite0275034ad94c413090bab4bf65ccb70906725ed
tree3ab6b360344cfbb284c84abb748c7a532f2f6b1a
parent43bbf94c333ac1b1bee2bf05efb48e9ae8ea3e82
gpio: davinci: Use unique labels for each gpio chip

The gpiod framework uses the chip label to match a specific chip.
The davinci gpio driver, creates several chips using always the same
label, which is not compatible with gpiod.

To allow platform data to declare gpio lookup tables, and for drivers
to use the gpiod framework, allocate unique label per registered chip.

Signed-off-by: Axel Haslam <ahaslam@baylibre.com>
Reviewed-by: Sekhar Nori <nsekhar@ti.com>
Acked-by: Kevin Hilman <khilman@baylibre.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpio-davinci.c