Skip to content

Commit

Permalink
MIPS: lantiq: make use of __gpio_to_irq
Browse files Browse the repository at this point in the history
The gpio_chip struct allows us to set a .to_irq callback. Once this is set
we can rely on the generic __gpio_to_irq() function to map gpio->irq allowing
more than one gpio_chip to register an interrupt

Signed-off-by: John Crispin <blogic@openwrt.org>
  • Loading branch information
John Crispin committed Sep 13, 2012
1 parent 8e004b4 commit 6a88a0f
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions arch/mips/include/asm/mach-lantiq/gpio.h
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
#ifndef __ASM_MIPS_MACH_LANTIQ_GPIO_H
#define __ASM_MIPS_MACH_LANTIQ_GPIO_H

static inline int gpio_to_irq(unsigned int gpio)
{
return -1;
}
#define gpio_to_irq __gpio_to_irq

#define gpio_get_value __gpio_get_value
#define gpio_set_value __gpio_set_value
Expand Down

0 comments on commit 6a88a0f

Please sign in to comment.