Skip to content

Commit 0ef2cfc

Browse files
Russell KingRussell King
authored andcommitted
[ARM] pxa: fix tosa.c build error
Work around: arch/arm/mach-pxa/tosa.c: In function `tosa_poweroff': arch/arm/mach-pxa/tosa.c:470: error: `GPIO_OUT' undeclared (first use in this function) arch/arm/mach-pxa/tosa.c:470: error: (Each undeclared identifier is reported only once arch/arm/mach-pxa/tosa.c:470: error: for each function it appears in.) The proper fix exists in the PXA branch of my kernel git tree, which will be pushed during the next merge window. Signed-off-by: Russell King <[email protected]>
1 parent 1e5c594 commit 0ef2cfc

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/arm/mach-pxa/tosa.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -467,8 +467,8 @@ static struct platform_device *devices[] __initdata = {
467467

468468
static void tosa_poweroff(void)
469469
{
470-
pxa_gpio_mode(TOSA_GPIO_ON_RESET | GPIO_OUT);
471-
GPSR(TOSA_GPIO_ON_RESET) = GPIO_bit(TOSA_GPIO_ON_RESET);
470+
gpio_direction_output(TOSA_GPIO_ON_RESET, 0);
471+
gpio_set_value(TOSA_GPIO_ON_RESET, 1);
472472

473473
mdelay(1000);
474474
arm_machine_restart('h');

0 commit comments

Comments
 (0)