summaryrefslogtreecommitdiff
path: root/drivers/mmc/bcm2835_sdhci.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-09-26 08:10:02 +0900
committerJaehoon Chung <jh80.chung@samsung.com>2016-10-10 15:23:33 +0900
commit2cb5d67c1aceb758033954cc06382367ac89e6ac (patch)
tree033c23524ed8a33e7364b29b34069f2ce5a6041f /drivers/mmc/bcm2835_sdhci.c
parent895549a2d994ecf1ca1636792e55019e56be2d7d (diff)
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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/bcm2835_sdhci.c b/drivers/mmc/bcm2835_sdhci.c
index c1d870098f..cb2bd40c65 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;
}
/*