diff options
author | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
---|---|---|
committer | Ralf Baechle <ralf@linux-mips.org> | 2012-12-13 13:40:13 -0500 |
commit | 241738bd51cb0efe58e6c570223153e970afe3ae (patch) | |
tree | 05263e1ec3fbd58cc4ba5ee69163612fbb769a4a /arch/mips/bcm47xx/wgt634u.c | |
parent | bdf20507da11a9a5b32ef04fa09f352828189aef (diff) | |
parent | ce8f0d0607bcad3ec0e8599be80353204427093e (diff) |
Merge branch 'mips-next' of http://dev.phrozen.org/githttp/mips-next into mips-for-linux-next
Diffstat (limited to 'arch/mips/bcm47xx/wgt634u.c')
-rw-r--r-- | arch/mips/bcm47xx/wgt634u.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/arch/mips/bcm47xx/wgt634u.c b/arch/mips/bcm47xx/wgt634u.c index e9f9ec8d443b..6c28f6d891d3 100644 --- a/arch/mips/bcm47xx/wgt634u.c +++ b/arch/mips/bcm47xx/wgt634u.c | |||
@@ -11,6 +11,7 @@ | |||
11 | #include <linux/leds.h> | 11 | #include <linux/leds.h> |
12 | #include <linux/mtd/physmap.h> | 12 | #include <linux/mtd/physmap.h> |
13 | #include <linux/ssb/ssb.h> | 13 | #include <linux/ssb/ssb.h> |
14 | #include <linux/ssb/ssb_embedded.h> | ||
14 | #include <linux/interrupt.h> | 15 | #include <linux/interrupt.h> |
15 | #include <linux/reboot.h> | 16 | #include <linux/reboot.h> |
16 | #include <linux/gpio.h> | 17 | #include <linux/gpio.h> |
@@ -116,7 +117,8 @@ static irqreturn_t gpio_interrupt(int irq, void *ignored) | |||
116 | 117 | ||
117 | /* Interrupt are level triggered, revert the interrupt polarity | 118 | /* Interrupt are level triggered, revert the interrupt polarity |
118 | to clear the interrupt. */ | 119 | to clear the interrupt. */ |
119 | gpio_polarity(WGT634U_GPIO_RESET, state); | 120 | ssb_gpio_polarity(&bcm47xx_bus.ssb, 1 << WGT634U_GPIO_RESET, |
121 | state ? 1 << WGT634U_GPIO_RESET : 0); | ||
120 | 122 | ||
121 | if (!state) { | 123 | if (!state) { |
122 | printk(KERN_INFO "Reset button pressed"); | 124 | printk(KERN_INFO "Reset button pressed"); |
@@ -150,7 +152,9 @@ static int __init wgt634u_init(void) | |||
150 | gpio_interrupt, IRQF_SHARED, | 152 | gpio_interrupt, IRQF_SHARED, |
151 | "WGT634U GPIO", &bcm47xx_bus.ssb.chipco)) { | 153 | "WGT634U GPIO", &bcm47xx_bus.ssb.chipco)) { |
152 | gpio_direction_input(WGT634U_GPIO_RESET); | 154 | gpio_direction_input(WGT634U_GPIO_RESET); |
153 | gpio_intmask(WGT634U_GPIO_RESET, 1); | 155 | ssb_gpio_intmask(&bcm47xx_bus.ssb, |
156 | 1 << WGT634U_GPIO_RESET, | ||
157 | 1 << WGT634U_GPIO_RESET); | ||
154 | ssb_chipco_irq_mask(&bcm47xx_bus.ssb.chipco, | 158 | ssb_chipco_irq_mask(&bcm47xx_bus.ssb.chipco, |
155 | SSB_CHIPCO_IRQ_GPIO, | 159 | SSB_CHIPCO_IRQ_GPIO, |
156 | SSB_CHIPCO_IRQ_GPIO); | 160 | SSB_CHIPCO_IRQ_GPIO); |