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/logicpd/zoom2/zoom2.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'board/logicpd/zoom2/zoom2.c') diff --git a/board/logicpd/zoom2/zoom2.c b/board/logicpd/zoom2/zoom2.c index 800113a..21964c2 100644 --- a/board/logicpd/zoom2/zoom2.c +++ b/board/logicpd/zoom2/zoom2.c @@ -36,7 +36,7 @@ #include #include #include -#include +#include #include #include #include @@ -90,12 +90,12 @@ void zoom2_identify(void) * and they are not commonly used. They are mentioned here * only for completeness. */ - if (!omap_request_gpio(94)) { + if (!gpio_request(94, "")) { unsigned int val; - omap_set_gpio_direction(94, 1); - val = omap_get_gpio_datain(94); - omap_free_gpio(94); + gpio_direction_input(94); + val = gpio_get_value(94); + gpio_free(94); if (val) revision = ZOOM2_REVISION_BETA; -- cgit v1.1