diff options
author | Eric Miao <eric.miao@marvell.com> | 2009-01-06 22:30:49 -0500 |
---|---|---|
committer | Eric Miao <eric.miao@marvell.com> | 2009-03-09 09:22:37 -0400 |
commit | 3b8e285c21d12082a85a142ef73a1648d41cae46 (patch) | |
tree | 2666c51c4a61644956eea6369c9d824c60e9235b /arch/arm/mach-pxa/gpio.c | |
parent | da065a0b3611751feefeb0f0e277cd5830056dad (diff) |
[ARM] pxa: move declaration of 'pxa_last_gpio' into <mach/gpio.h>
Signed-off-by: Eric Miao <eric.miao@marvell.com>
Diffstat (limited to 'arch/arm/mach-pxa/gpio.c')
-rw-r--r-- | arch/arm/mach-pxa/gpio.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-pxa/gpio.c b/arch/arm/mach-pxa/gpio.c index 9a33eb07fe0a..41935590e990 100644 --- a/arch/arm/mach-pxa/gpio.c +++ b/arch/arm/mach-pxa/gpio.c | |||
@@ -20,6 +20,8 @@ | |||
20 | 20 | ||
21 | #include <mach/gpio.h> | 21 | #include <mach/gpio.h> |
22 | 22 | ||
23 | int pxa_last_gpio; | ||
24 | |||
23 | #define GPIO0_BASE (GPIO_REGS_VIRT + 0x0000) | 25 | #define GPIO0_BASE (GPIO_REGS_VIRT + 0x0000) |
24 | #define GPIO1_BASE (GPIO_REGS_VIRT + 0x0004) | 26 | #define GPIO1_BASE (GPIO_REGS_VIRT + 0x0004) |
25 | #define GPIO2_BASE (GPIO_REGS_VIRT + 0x0008) | 27 | #define GPIO2_BASE (GPIO_REGS_VIRT + 0x0008) |
@@ -38,8 +40,6 @@ struct pxa_gpio_chip { | |||
38 | void __iomem *regbase; | 40 | void __iomem *regbase; |
39 | }; | 41 | }; |
40 | 42 | ||
41 | int pxa_last_gpio; | ||
42 | |||
43 | static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset) | 43 | static int pxa_gpio_direction_input(struct gpio_chip *chip, unsigned offset) |
44 | { | 44 | { |
45 | unsigned long flags; | 45 | unsigned long flags; |