mirror of
https://github.com/AsahiLinux/u-boot
synced 2025-02-20 07:58:55 +00:00
Merge git://git.denx.de/u-boot-marvell
This commit is contained in:
commit
50b9782c83
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue