]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
mmc: sdhci: fix chip detect gpio property name
authorBaruch Siach <baruch@tkos.co.il>
Mon, 22 Jul 2019 16:14:06 +0000 (19:14 +0300)
committerPeng Fan <peng.fan@nxp.com>
Wed, 31 Jul 2019 07:31:36 +0000 (15:31 +0800)
The standard property name for chip-detect gpio is "cd-gpios". All
in-tree DT files use only this name.

Fixes: 451931ea700 ("mmc: sdhci: Read cd-gpio from devicetree")
Cc: T Karthik Reddy <t.karthik.reddy@xilinx.com>
Cc: Michal Simek <michal.simek@xilinx.com>
Signed-off-by: Baruch Siach <baruch@tkos.co.il>
Reviewed-by: Peng Fan <peng.fan@nxp.com>
drivers/mmc/sdhci.c

index 0a0770cc2035ca609896e8b10a267c5312e24786..2779bca93f084669a1adb5c49480bbb17e52cd83 100644 (file)
@@ -623,7 +623,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