summaryrefslogtreecommitdiff
path: root/drivers/mmc/mv_sdhci.c
diff options
context:
space:
mode:
authorJaehoon Chung <jh80.chung@samsung.com>2016-09-25 23:10:02 (GMT)
committerJaehoon Chung <jh80.chung@samsung.com>2016-10-10 06:23:33 (GMT)
commit2cb5d67c1aceb758033954cc06382367ac89e6ac (patch)
tree033c23524ed8a33e7364b29b34069f2ce5a6041f /drivers/mmc/mv_sdhci.c
parent895549a2d994ecf1ca1636792e55019e56be2d7d (diff)
downloadu-boot-2cb5d67c1aceb758033954cc06382367ac89e6ac.tar.xz
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/mv_sdhci.c')
-rw-r--r--drivers/mmc/mv_sdhci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c
index ca5f872..e388ad1 100644
--- a/drivers/mmc/mv_sdhci.c
+++ b/drivers/mmc/mv_sdhci.c
@@ -71,7 +71,7 @@ int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks)
host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host));
if (!host) {
printf("sdh_host malloc fail!\n");
- return 1;
+ return -ENOMEM;
}
host->name = MVSDH_NAME;