From b5db0a068a25e71b178e4b89635af731cf2f7c24 Mon Sep 17 00:00:00 2001 From: Joe Hershberger Date: Wed, 12 Oct 2011 10:31:44 +0000 Subject: omap: Don't use gpio_free to change direction to input gpio_free() should not have the side effect of setting the line to input since this prevents the gpio command from being able to set a line as output. Signed-off-by: Joe Hershberger Cc: Joe Hershberger Cc: Sandeep Paulraj Signed-off-by: Sandeep Paulraj --- board/ti/beagle/beagle.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'board/ti/beagle') diff --git a/board/ti/beagle/beagle.c b/board/ti/beagle/beagle.c index aa5047c..9482c5e 100644 --- a/board/ti/beagle/beagle.c +++ b/board/ti/beagle/beagle.c @@ -127,10 +127,6 @@ int get_board_revision(void) revision = gpio_get_value(173) << 2 | gpio_get_value(172) << 1 | gpio_get_value(171); - - gpio_free(171); - gpio_free(172); - gpio_free(173); } else { printf("Error: unable to acquire board revision GPIOs\n"); revision = -1; @@ -522,8 +518,6 @@ int do_userbutton(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]) printf("NOT pressed.\n"); } - gpio_free(gpio); - return !button; } -- cgit v1.1