mirror of
git://git.openwrt.org/openwrt/openwrt.git
synced 2024-12-22 06:41:17 +00:00
df04723478
Signed-off-by: Stijn Tintel <stijn@linux-ipv6.be>
22 lines
570 B
Diff
22 lines
570 B
Diff
--- a/arch/arm/mach-gemini/gpio.c
|
|
+++ b/arch/arm/mach-gemini/gpio.c
|
|
@@ -196,12 +196,18 @@ static int gemini_gpio_direction_output(
|
|
return 0;
|
|
}
|
|
|
|
+static int gemini_gpio_to_irq(struct gpio_chip *chip, unsigned gpio)
|
|
+{
|
|
+ return gpio + GPIO_IRQ_BASE;
|
|
+}
|
|
+
|
|
static struct gpio_chip gemini_gpio_chip = {
|
|
.label = "Gemini",
|
|
.direction_input = gemini_gpio_direction_input,
|
|
.get = gemini_gpio_get,
|
|
.direction_output = gemini_gpio_direction_output,
|
|
.set = gemini_gpio_set,
|
|
+ .to_irq = gemini_gpio_to_irq,
|
|
.base = 0,
|
|
.ngpio = GPIO_PORT_NUM * 32,
|
|
};
|