summaryrefslogtreecommitdiffstats
path: root/arch/mips/jz4740
diff options
context:
space:
mode:
authorRalf Baechle <ralf@linux-mips.org>2016-02-16 12:29:46 +0100
committerLinus Walleij <linus.walleij@linaro.org>2016-02-19 00:17:24 +0100
commitb61a459fd2540fb846d692342266d412cec837f1 (patch)
treea22e7915bd1438b8ae7a2363c5e6adbc28354c29 /arch/mips/jz4740
parentgpio: use kzalloc to allocate gpio_device (diff)
downloadlinux-b61a459fd2540fb846d692342266d412cec837f1.tar.xz
linux-b61a459fd2540fb846d692342266d412cec837f1.zip
MIPS: jz4740: Fix surviving instance of irq_to_gpio()
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>
Diffstat (limited to 'arch/mips/jz4740')
-rw-r--r--arch/mips/jz4740/gpio.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/mips/jz4740/gpio.c b/arch/mips/jz4740/gpio.c
index 8c6d76c9b2d6..d9907e57e9b9 100644
--- 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)
{