projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fc77dbd
)
MIPS: jz4740: Fix surviving instance of irq_to_gpio()
author
Ralf Baechle
<ralf@linux-mips.org>
Tue, 16 Feb 2016 11:29:46 +0000
(12:29 +0100)
committer
Ralf Baechle
<ralf@linux-mips.org>
Mon, 29 Feb 2016 10:23:49 +0000
(11:23 +0100)
This is fallout from commit
832f5dacfa0b
("MIPS: Remove all the uses of
custom gpio.h").
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Suggested-by: Lars-Peter Clausen <lars@metafoo.de>
arch/mips/jz4740/gpio.c
patch
|
blob
|
history
diff --git
a/arch/mips/jz4740/gpio.c
b/arch/mips/jz4740/gpio.c
index 8c6d76c9b2d69bf6603e32598e3b8d74cba15bf6..d9907e57e9b986f4d296c829c4cf0d5d8c995d38 100644
(file)
--- a/
arch/mips/jz4740/gpio.c
+++ b/
arch/mips/jz4740/gpio.c
@@
-270,7
+270,7
@@
uint32_t jz_gpio_port_get_value(int port, uint32_t mask)
}
EXPORT_SYMBOL(jz_gpio_port_get_value);
-#define IRQ_TO_BIT(irq) BIT(
irq_to_gpio(irq
) & 0x1f)
+#define IRQ_TO_BIT(irq) BIT(
(irq - JZ4740_IRQ_GPIO(0)
) & 0x1f)
static void jz_gpio_check_trigger_both(struct jz_gpio_chip *chip, unsigned int irq)
{