diff options
author | Joe Hershberger <joe.hershberger@ni.com> | 2011-10-12 10:31:44 +0000 |
---|---|---|
committer | Albert ARIBAUD <albert.u.boot@aribaud.net> | 2011-10-27 21:56:35 +0200 |
commit | b5db0a068a25e71b178e4b89635af731cf2f7c24 (patch) | |
tree | 9d17469de9e3805d4066c0dd2110bb68851a13c1 /board/ti/beagle | |
parent | 1037d585d3a4e8f1dceb504c0089f7cc16abdb8c (diff) | |
download | u-boot-imx-b5db0a068a25e71b178e4b89635af731cf2f7c24.zip u-boot-imx-b5db0a068a25e71b178e4b89635af731cf2f7c24.tar.gz u-boot-imx-b5db0a068a25e71b178e4b89635af731cf2f7c24.tar.bz2 |
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 <joe.hershberger@ni.com>
Cc: Joe Hershberger <joe.hershberger@gmail.com>
Cc: Sandeep Paulraj <s-paulraj@ti.com>
Signed-off-by: Sandeep Paulraj <s-paulraj@ti.com>
Diffstat (limited to 'board/ti/beagle')
-rw-r--r-- | board/ti/beagle/beagle.c | 6 |
1 files changed, 0 insertions, 6 deletions
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; } |