diff options
author | Tom Rini <trini@konsulko.com> | 2018-04-17 09:14:33 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2018-04-17 09:14:33 -0400 |
commit | 50b9782c83b66ce7ed89049421529f3ba34096d2 (patch) | |
tree | 1256619bd4f1f291854685ca4c9341268308da2f | |
parent | 8c0a17be0a632b9a823e14628c42f85c3e64f08e (diff) | |
parent | ca4e7d674ee6931c7a4effd697e644d7646cfac0 (diff) | |
download | u-boot-50b9782c83b66ce7ed89049421529f3ba34096d2.tar.gz |
Merge git://git.denx.de/u-boot-marvell
-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 69aa87babe..0ed0d38c90 100644 --- a/drivers/mmc/mv_sdhci.c +++ b/drivers/mmc/mv_sdhci.c @@ -68,7 +68,7 @@ static char *MVSDH_NAME = "mv_sdh"; int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks) { struct sdhci_host *host = NULL; - host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host)); + host = calloc(1, sizeof(*host)); if (!host) { printf("sdh_host malloc fail!\n"); return -ENOMEM; |