[U-Boot] [PATCH u-boot-mmc 1/1] mmc: sdhci: Read cd-gpios instead of cd-gpio from devicetree

Marek BehĂșn marek.behun at nic.cz
Tue Jul 23 14:34:02 UTC 2019


Linux's documentation (Documentation/devicetree/bindings/mmc/mmc.txt)
says the property should be named cd-gpios, not cd-gpio. All the dts
files use cd-gpios.

Signed-off-by: Marek BehĂșn <marek.behun at nic.cz>
Cc: T Karthik Reddy <t.karthik.reddy at xilinx.com>
Cc: Michal Simek <michal.simek at xilinx.com>
Cc: Peng Fan <peng.fan at nxp.com>
---
 drivers/mmc/sdhci.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/mmc/sdhci.c b/drivers/mmc/sdhci.c
index c4e88790bc..d0e9cc55f6 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -594,7 +594,7 @@ static int sdhci_init(struct mmc *mmc)
 #if CONFIG_IS_ENABLED(DM_MMC) && CONFIG_IS_ENABLED(DM_GPIO)
 	struct udevice *dev = mmc->dev;
 
-	gpio_request_by_name(dev, "cd-gpio", 0,
+	gpio_request_by_name(dev, "cd-gpios", 0,
 			     &host->cd_gpio, GPIOD_IS_IN);
 #endif
 
-- 
2.21.0



More information about the U-Boot mailing list