diff options
author | Ben Dooks <ben-linux@fluff.org> | 2008-12-13 20:44:13 +0000 |
---|---|---|
committer | Ben Dooks <ben-linux@fluff.org> | 2008-12-14 11:34:47 +0000 |
commit | 7ef71320eba8933275be10bfa44e083bec95b3f1 (patch) | |
tree | 3f588c2f24204ecedcce1b3814cd5c3b130e9c4b /arch/arm/mach-ks8695/gpio.c | |
parent | 72880ad866c21badace4d8026c1e58f2fde087fb (diff) |
[ARM] KS8695: Add GPIO to IRQ mapping function
Use the GPIOlib .to_irq call to map KS8695 GPIOs
to the relevant IRQ line.
Signed-off-by: Ben Dooks <ben-linux@fluff.org>
Diffstat (limited to 'arch/arm/mach-ks8695/gpio.c')
-rw-r--r-- | arch/arm/mach-ks8695/gpio.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/arch/arm/mach-ks8695/gpio.c b/arch/arm/mach-ks8695/gpio.c index 26d6346f38f1..55fbf7111a5b 100644 --- a/arch/arm/mach-ks8695/gpio.c +++ b/arch/arm/mach-ks8695/gpio.c @@ -197,15 +197,13 @@ static int ks8695_gpio_get_value(struct gpio_chip *gc, unsigned int pin) /* * Map GPIO line to IRQ number. */ -int gpio_to_irq(unsigned int pin) +static int ks8695_gpio_to_irq(struct gpio_chip *gc, unsigned int pin) { if (pin > KS8695_GPIO_3) /* only GPIO 0..3 can generate IRQ */ return -EINVAL; return gpio_irq[pin]; } -EXPORT_SYMBOL(gpio_to_irq); - /* * Map IRQ number to GPIO line. @@ -227,6 +225,7 @@ static struct gpio_chip ks8695_gpio_chip = { .direction_output = ks8695_gpio_direction_output, .get = ks8695_gpio_get_value, .set = ks8695_gpio_set_value, + .to_irq = ks8695_gpio_to_irq, .base = 0, .ngpio = 16, .can_sleep = 0, |