diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-09-26 08:10:02 +0900 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-10-10 15:23:33 +0900 |
commit | 2cb5d67c1aceb758033954cc06382367ac89e6ac (patch) | |
tree | 033c23524ed8a33e7364b29b34069f2ce5a6041f /drivers/mmc/bcm2835_sdhci.c | |
parent | 895549a2d994ecf1ca1636792e55019e56be2d7d (diff) | |
download | u-boot-imx-2cb5d67c1aceb758033954cc06382367ac89e6ac.zip u-boot-imx-2cb5d67c1aceb758033954cc06382367ac89e6ac.tar.gz u-boot-imx-2cb5d67c1aceb758033954cc06382367ac89e6ac.tar.bz2 |
mmc: sdhci: use the generic error number
Use the generic error number instead of meaningless value.
Signed-off-by: Jaehoon Chung <jh80.chung@samsung.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/mmc/bcm2835_sdhci.c')
-rw-r--r-- | drivers/mmc/bcm2835_sdhci.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c index c1d8700..cb2bd40 100644 --- a/drivers/mmc/bcm2835_sdhci.c +++ b/drivers/mmc/bcm2835_sdhci.c @@ -157,7 +157,7 @@ int bcm2835_sdhci_init(u32 regbase, u32 emmc_freq) bcm_host = calloc(1, sizeof(*bcm_host)); if (!bcm_host) { printf("sdhci_host calloc fail!\n"); - return 1; + return -ENOMEM; } /* |