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>
This commit is contained in:
committed by
Albert ARIBAUD
parent
1037d585d3
commit
b5db0a068a
@@ -118,10 +118,6 @@ int get_board_revision(void)
|
||||
revision = gpio_get_value(115) << 2 |
|
||||
gpio_get_value(113) << 1 |
|
||||
gpio_get_value(112);
|
||||
|
||||
gpio_free(112);
|
||||
gpio_free(113);
|
||||
gpio_free(115);
|
||||
} else {
|
||||
printf("Error: unable to acquire board revision GPIOs\n");
|
||||
revision = -1;
|
||||
@@ -153,8 +149,7 @@ int get_sdio2_config(void)
|
||||
sdio_direct = 0;
|
||||
}
|
||||
|
||||
gpio_free(130);
|
||||
gpio_free(139);
|
||||
gpio_direction_input(130);
|
||||
} else {
|
||||
printf("Error: unable to acquire sdio2 clk GPIOs\n");
|
||||
sdio_direct = -1;
|
||||
|
||||
Reference in New Issue
Block a user