[U-Boot] [PATCH 2/2] mmc: sdhci: use the generic error number

Stefan Roese sr at denx.de
Fri Sep 23 12:26:11 CEST 2016


On 23.09.2016 12:14, Jaehoon Chung wrote:
> Use the generic error number instead of meaningless value.
>
> Signed-off-by: Jaehoon Chung <jh80.chung at samsung.com>
> ---
>  drivers/mmc/kona_sdhci.c |  6 +++---
>  drivers/mmc/mv_sdhci.c   |  2 +-
>  drivers/mmc/s5p_sdhci.c  |  8 ++++----
>  drivers/mmc/sdhci.c      | 12 ++++++------
>  4 files changed, 14 insertions(+), 14 deletions(-)
>
> diff --git a/drivers/mmc/kona_sdhci.c b/drivers/mmc/kona_sdhci.c
> index 0c4f30e..71c06b1 100644
> --- a/drivers/mmc/kona_sdhci.c
> +++ b/drivers/mmc/kona_sdhci.c
> @@ -27,7 +27,7 @@ static int init_kona_mmc_core(struct sdhci_host *host)
>
>  	if (sdhci_readb(host, SDHCI_SOFTWARE_RESET) & SDHCI_RESET_ALL) {
>  		printf("%s: sd host controller reset error\n", __func__);
> -		return 1;
> +		return -;

You probably missed something here.

Thanks,
Stefan


More information about the U-Boot mailing list