Skip to content

Commit

Permalink
MIPS: jz4740: Fix surviving instance of irq_to_gpio()
Browse files Browse the repository at this point in the history
This is fallout from commit 832f5da ("MIPS: Remove all the uses of
custom gpio.h").

Signed-off-by: Ralf Baechle <[email protected]>
Suggested-by: Lars-Peter Clausen <[email protected]>
  • Loading branch information
ralfbaechle committed Feb 29, 2016
1 parent fc77dbd commit 71e6007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion arch/mips/jz4740/gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 71e6007

Please sign in to comment.