ARM: Kirkwood: Use fixed-regulator instead of board gpio call
authorAndrew Lunn <andrew@lunn.ch>
Sun, 6 Jan 2013 10:10:38 +0000 (11:10 +0100)
committerJason Cooper <jason@lakedaemon.net>
Sun, 6 Jan 2013 17:53:10 +0000 (17:53 +0000)
commit7e7139248bc40c735513d694eee0aa8ac4f5cd78
tree125215c6ffeda5ac06b3e0dc2330753c77917891
parent20fa87e91e612e8f6e7ab226c43934ef998b735f
ARM: Kirkwood: Use fixed-regulator instead of board gpio call

With the change to a DT based pinctrl/gpio driver, using gpio API
calls in board-*.c files no longer works, a dereferenced NULL pointer
exception occurs instead. By converting the GPIO code into a
fixed-regulator which gets probed later once pinctrl/gpio is
available, we avoid the exception.

Signed-off-by: Andrew Lunn <andrew@lunn.ch>
Tested-by: Stefan Peter <s.peter@mplch>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
arch/arm/boot/dts/kirkwood-topkick.dts
arch/arm/mach-kirkwood/board-usi_topkick.c