[U-Boot] [PATCH] mmc: sdhci: make sdhci_get_cd static

Baruch Siach baruch at tkos.co.il
Sun Nov 3 10:00:27 UTC 2019


sdhci_get_cd() is not referenced anywhere else. Limit its scope to
sdhci.c.

Signed-off-by: Baruch Siach <baruch at tkos.co.il>
---
 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 fbc576fd726e..32e83db8e09b 100644
--- a/drivers/mmc/sdhci.c
+++ b/drivers/mmc/sdhci.c
@@ -660,7 +660,7 @@ int sdhci_probe(struct udevice *dev)
 	return sdhci_init(mmc);
 }
 
-int sdhci_get_cd(struct udevice *dev)
+static int sdhci_get_cd(struct udevice *dev)
 {
 	struct mmc *mmc = mmc_get_mmc_dev(dev);
 	struct sdhci_host *host = mmc->priv;
-- 
2.24.0.rc1



More information about the U-Boot mailing list