ARM: plat-orion: make gpiochip label unique
authorHolger Brunck <holger.brunck@keymile.com>
Mon, 19 Dec 2011 16:49:48 +0000 (17:49 +0100)
committerOlof Johansson <olof@lixom.net>
Tue, 20 Dec 2011 04:55:36 +0000 (20:55 -0800)
commit0b35a45bde561d67ffd83b352764b48f936f46bb
tree7c16102cba87dd815c1ab99cbcd461a75099aa72
parent334fef05fd8f9be55f9982f788f2e85925bb2684
ARM: plat-orion: make gpiochip label unique

The former implementation adds a fix gpiochip label string
to the framework. This is confusing because orion_gpio_init
is called more than once and this ends up in different gpiochips
with the same label.

This patch adds the already present orion_gpio_chip_count to the
label string to make it unique in the system.

Signed-off-by: Holger Brunck <holger.brunck@keymile.com>
Cc: Lennert Buytenhek <kernel@wantstofly.org>
Acked-by: Nicolas Pitre <nico@linaro.org>
Signed-off-by: Olof Johansson <olof@lixom.net>
arch/arm/plat-orion/gpio.c