Merge git://git.denx.de/u-boot-marvell

This commit is contained in:
Tom Rini 2018-04-17 09:14:33 -04:00
commit 50b9782c83

View file

@ -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) int mv_sdh_init(unsigned long regbase, u32 max_clk, u32 min_clk, u32 quirks)
{ {
struct sdhci_host *host = NULL; struct sdhci_host *host = NULL;
host = (struct sdhci_host *)malloc(sizeof(struct sdhci_host)); host = calloc(1, sizeof(*host));
if (!host) { if (!host) {
printf("sdh_host malloc fail!\n"); printf("sdh_host malloc fail!\n");
return -ENOMEM; return -ENOMEM;