summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2014-10-28 12:39:26 -0400
committerTom Rini <trini@ti.com>2014-10-28 12:39:26 -0400
commit93575c30acda2b5802f542a17b296646841c88c1 (patch)
tree4160c96b57a7cce7b89611a74efaa8d00591ea3e /drivers
parent6c499abe05f93d9f53338b9831196efeede5f2e0 (diff)
parent6bc98f50e5700a8df126e21b14903579a8c781cf (diff)
downloadu-boot-93575c30acda2b5802f542a17b296646841c88c1.tar.gz
u-boot-93575c30acda2b5802f542a17b296646841c88c1.tar.xz
u-boot-93575c30acda2b5802f542a17b296646841c88c1.zip
Merge git://git.denx.de/u-boot-dm
Diffstat (limited to 'drivers')
-rw-r--r--drivers/mmc/s5p_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/s5p_sdhci.c b/drivers/mmc/s5p_sdhci.c
index 0dea45d079..a5d34876bb 100644
--- a/drivers/mmc/s5p_sdhci.c
+++ b/drivers/mmc/s5p_sdhci.c
@@ -123,7 +123,7 @@ static int do_sdhci_init(struct sdhci_host *host)
if (fdt_gpio_isvalid(&host->cd_gpio)) {
sprintf(str, "sdhci%d_cd", host->index & 0xf);
gpio_request(host->cd_gpio.gpio, str);
- gpio_direction_output(host->cd_gpio.gpio, 1);
+ gpio_direction_input(host->cd_gpio.gpio);
if (gpio_get_value(host->cd_gpio.gpio))
return -ENODEV;