diff options
Diffstat (limited to 'arch/arm/mach-pxa/pxa25x.c')
-rw-r--r-- | arch/arm/mach-pxa/pxa25x.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/arch/arm/mach-pxa/pxa25x.c b/arch/arm/mach-pxa/pxa25x.c index f05f9486b0cb..adf058fa97ee 100644 --- a/arch/arm/mach-pxa/pxa25x.c +++ b/arch/arm/mach-pxa/pxa25x.c | |||
@@ -17,6 +17,7 @@ | |||
17 | * need be. | 17 | * need be. |
18 | */ | 18 | */ |
19 | #include <linux/gpio.h> | 19 | #include <linux/gpio.h> |
20 | #include <linux/gpio-pxa.h> | ||
20 | #include <linux/module.h> | 21 | #include <linux/module.h> |
21 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
22 | #include <linux/init.h> | 23 | #include <linux/init.h> |
@@ -208,6 +209,8 @@ static struct clk_lookup pxa25x_clkregs[] = { | |||
208 | INIT_CLKREG(&clk_pxa25x_gpio11, NULL, "GPIO11_CLK"), | 209 | INIT_CLKREG(&clk_pxa25x_gpio11, NULL, "GPIO11_CLK"), |
209 | INIT_CLKREG(&clk_pxa25x_gpio12, NULL, "GPIO12_CLK"), | 210 | INIT_CLKREG(&clk_pxa25x_gpio12, NULL, "GPIO12_CLK"), |
210 | INIT_CLKREG(&clk_pxa25x_mem, "pxa2xx-pcmcia", NULL), | 211 | INIT_CLKREG(&clk_pxa25x_mem, "pxa2xx-pcmcia", NULL), |
212 | INIT_CLKREG(&clk_dummy, "pxa-gpio", NULL), | ||
213 | INIT_CLKREG(&clk_dummy, "sa1100-rtc", NULL), | ||
211 | }; | 214 | }; |
212 | 215 | ||
213 | static struct clk_lookup pxa25x_hwuart_clkreg = | 216 | static struct clk_lookup pxa25x_hwuart_clkreg = |
@@ -287,7 +290,7 @@ static inline void pxa25x_init_pm(void) {} | |||
287 | 290 | ||
288 | static int pxa25x_set_wake(struct irq_data *d, unsigned int on) | 291 | static int pxa25x_set_wake(struct irq_data *d, unsigned int on) |
289 | { | 292 | { |
290 | int gpio = irq_to_gpio(d->irq); | 293 | int gpio = pxa_irq_to_gpio(d->irq); |
291 | uint32_t mask = 0; | 294 | uint32_t mask = 0; |
292 | 295 | ||
293 | if (gpio >= 0 && gpio < 85) | 296 | if (gpio >= 0 && gpio < 85) |
@@ -312,14 +315,12 @@ set_pwer: | |||
312 | void __init pxa25x_init_irq(void) | 315 | void __init pxa25x_init_irq(void) |
313 | { | 316 | { |
314 | pxa_init_irq(32, pxa25x_set_wake); | 317 | pxa_init_irq(32, pxa25x_set_wake); |
315 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 84, pxa25x_set_wake); | ||
316 | } | 318 | } |
317 | 319 | ||
318 | #ifdef CONFIG_CPU_PXA26x | 320 | #ifdef CONFIG_CPU_PXA26x |
319 | void __init pxa26x_init_irq(void) | 321 | void __init pxa26x_init_irq(void) |
320 | { | 322 | { |
321 | pxa_init_irq(32, pxa25x_set_wake); | 323 | pxa_init_irq(32, pxa25x_set_wake); |
322 | pxa_init_gpio(IRQ_GPIO_2_x, 2, 89, pxa25x_set_wake); | ||
323 | } | 324 | } |
324 | #endif | 325 | #endif |
325 | 326 | ||