From 5455c01fcd6ca63976bd865e102833311af2532e Mon Sep 17 00:00:00 2001 From: Jarkko Nikula Date: Fri, 31 Oct 2008 14:18:56 +0200 Subject: [PATCH] INPUT: TS_Hx: Switch to gpio_request/free calls Signed-off-by: Jarkko Nikula Signed-off-by: Tony Lindgren --- drivers/input/touchscreen/omap/ts_hx.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/input/touchscreen/omap/ts_hx.c b/drivers/input/touchscreen/omap/ts_hx.c index 0ef7f6c8d78..9d3ec974b2c 100644 --- a/drivers/input/touchscreen/omap/ts_hx.c +++ b/drivers/input/touchscreen/omap/ts_hx.c @@ -28,8 +28,8 @@ #include #include +#include #include -#include #include #include #include @@ -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 -- 2.41.1