]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - arch/arm/mach-ks8695/gpio.c
Merge branch 'x86/setup' of git://git.kernel.org/pub/scm/linux/kernel/git/tip/linux...
[karo-tx-linux.git] / arch / arm / mach-ks8695 / gpio.c
index 26d6346f38f1ffb0d11ce53db123d31d8802068f..55fbf7111a5bd3fb5e720fd68e2c023b965f9dcb 100644 (file)
@@ -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,