From 84c3b6312997de6f98114263159c8b9824f3d33d Mon Sep 17 00:00:00 2001 From: Sanjeev Premi Date: Thu, 8 Sep 2011 10:51:01 -0400 Subject: omap: gpio: Adapt board files to use generic API This patch contains updates the sources in the board files to use the generic API. Signed-off-by: Sanjeev Premi --- board/isee/igep0020/igep0020.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'board/isee') diff --git a/board/isee/igep0020/igep0020.c b/board/isee/igep0020/igep0020.c index 36cc9248b6..2279cc0e36 100644 --- a/board/isee/igep0020/igep0020.c +++ b/board/isee/igep0020/igep0020.c @@ -24,7 +24,7 @@ #include #include #include -#include +#include #include #include #include @@ -81,13 +81,13 @@ static void setup_net_chip(void) &ctrl_base->gpmc_nadv_ale); /* Make GPIO 64 as output pin and send a magic pulse through it */ - if (!omap_request_gpio(64)) { - omap_set_gpio_direction(64, 0); - omap_set_gpio_dataout(64, 1); + if (!gpio_request(64, "")) { + gpio_direction_output(64, 0); + gpio_set_value(64, 1); udelay(1); - omap_set_gpio_dataout(64, 0); + gpio_set_value(64, 0); udelay(1); - omap_set_gpio_dataout(64, 1); + gpio_set_value(64, 1); } } #endif -- cgit v1.2.1