projects
/
oweals
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
mmc: tmio: Configure HOST_MODE WMODE according to bus width
[oweals/u-boot.git]
/
drivers
/
mmc
/
arm_pl180_mmci.c
diff --git
a/drivers/mmc/arm_pl180_mmci.c
b/drivers/mmc/arm_pl180_mmci.c
index 1cd780b3eec0108c6c9ccb339abd71be82a7bf4c..f71d79ecd6bae01bfa93700b42380d504da3b01e 100644
(file)
--- a/
drivers/mmc/arm_pl180_mmci.c
+++ b/
drivers/mmc/arm_pl180_mmci.c
@@
-499,11
+499,8
@@
static int dm_mmc_getcd(struct udevice *dev)
struct pl180_mmc_host *host = dev->priv;
int value = 1;
- if (dm_gpio_is_valid(&host->cd_gpio))
{
+ if (dm_gpio_is_valid(&host->cd_gpio))
value = dm_gpio_get_value(&host->cd_gpio);
- if (host->cd_inverted)
- return !value;
- }
return value;
}