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)
commit8758c885c43859266e45db588b1a5992c049c595
tree125215c6ffeda5ac06b3e0dc2330753c77917891
parentd2268be3dc0ef59f9d572f082c08e698e4617bc4
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