]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
INPUT: TS_Hx: Switch to gpio_request/free calls
authorJarkko Nikula <jarkko.nikula@nokia.com>
Fri, 31 Oct 2008 12:18:56 +0000 (14:18 +0200)
committerTony Lindgren <tony@atomide.com>
Fri, 21 Nov 2008 23:37:17 +0000 (15:37 -0800)
Signed-off-by: Jarkko Nikula <jarkko.nikula@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
drivers/input/touchscreen/omap/ts_hx.c

index 0ef7f6c8d78b5eba819baeb70b196189da7f5646..9d3ec974b2cdd52913b5e86c1da5aded391f77be 100644 (file)
@@ -28,8 +28,8 @@
 
 #include <linux/input.h>
 #include <linux/device.h>
+#include <linux/gpio.h>
 #include <asm/mach-types.h>
-#include <asm/arch/gpio.h>
 #include <asm/arch/mux.h>
 #include <asm/arch/hardware.h>
 #include <asm/hardware/tsc2101.h>
@@ -92,7 +92,7 @@ static int __init hx_ts_probe(struct omap_ts_t *ts)
                return -ENODEV;
 
        ts->irq = gpio_to_irq(gpio);
-       if (omap_request_gpio(gpio) != 0) {
+       if (gpio_request(gpio, "TS irq") != 0) {
                printk(KERN_ERR "hX_ts_init.c: Could not reserve GPIO!\n");
                return -EINVAL;
        };
@@ -177,8 +177,8 @@ static void hx_ts_disable(void)
 static void __exit hx_ts_remove(void)
 {
        if (machine_is_omap_h2())
-               omap_free_gpio(H2_GPIO_NUM);
+               gpio_free(H2_GPIO_NUM);
        else if (machine_is_omap_h3())
-               omap_free_gpio(H3_GPIO_NUM);
+               gpio_free(H3_GPIO_NUM);
 }
 #endif