diff options
author | Jaehoon Chung <jh80.chung@samsung.com> | 2016-09-26 02:10:02 +0300 |
---|---|---|
committer | Jaehoon Chung <jh80.chung@samsung.com> | 2016-10-10 09:23:33 +0300 |
commit | 2cb5d67c1aceb758033954cc06382367ac89e6ac (patch) | |
tree | 033c23524ed8a33e7364b29b34069f2ce5a6041f /drivers/mmc/mv_sdhci.c | |
parent | 895549a2d994ecf1ca1636792e55019e56be2d7d (diff) | |
download | u-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.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/mv_sdhci.c b/drivers/mmc/mv_sdhci.c index ca5f8724a3..e388ad171b 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; |