mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +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)
|
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;
|
||||||
|
|
Loading…
Reference in a new issue