1
0
mirror of https://xff.cz/git/u-boot/ synced 2025-09-01 16:52:14 +02:00
Files
u-boot-megous/drivers/mmc
Axel Lin b0c4ae1a51 mmc: sunxi: Fix misuse of gpio_direction_input()
It does not make sense to make gpio_direction_input() return the gpio input
status. The return value of gpio_direction_input() is inconsistent if
CONFIG_DM_GPIO is defined.
And we don't need to call gpio_direction_input() int sunxi_mmc_getcd().
Just init the gpio once in mmc_resource_init() is enough.

Signed-off-by: Axel Lin <axel.lin@ingics.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Signed-off-by: Ian Campbell <ijc@hellion.org.uk>
2015-01-14 14:56:36 +01:00
..
2014-12-12 21:09:01 +02:00
2014-09-24 18:30:28 -04:00
2014-11-07 16:27:04 -05:00
2014-12-12 21:08:38 +02:00
2014-08-01 19:24:34 +03:00
2014-10-25 07:02:02 -04:00
2014-12-05 11:16:22 +09:00
2014-12-05 11:16:22 +09:00
2014-10-25 07:27:37 -04:00