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

Peng Fan peng.fan at nxp.com
Thu Nov 21 01:56:19 UTC 2019


> Subject: [PATCH] mmc: sdhci: make sdhci_get_cd static
> 
> 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;
> --

After CI https://travis-ci.org/MrVan/u-boot/builds/614839218
It will show in mmc/master.

Thanks,
Peng.

> 2.24.0.rc1



More information about the U-Boot mailing list