summaryrefslogtreecommitdiff
path: root/drivers/mmc/fsl_esdhc.c
diff options
context:
space:
mode:
authorTom Rini <trini@ti.com>2013-05-07 10:09:00 -0400
committerTom Rini <trini@ti.com>2013-05-07 10:09:00 -0400
commit7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf (patch)
tree10ee78027dbf2d1e6e0d4d454c85d40ef6c7d73c /drivers/mmc/fsl_esdhc.c
parent4f4eab4d14b181c3a9447c75fd2b41b9d0d761e4 (diff)
parent88227a1d8a734cfd09ac43609abec8b66c2d2610 (diff)
downloadu-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.zip
u-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.tar.gz
u-boot-imx-7e7501f4bb0d550fbc6960e7e2fb2bc84d9795cf.tar.bz2
Merge branch 'master' of git://www.denx.de/git/u-boot-mmc
Diffstat (limited to 'drivers/mmc/fsl_esdhc.c')
-rw-r--r--drivers/mmc/fsl_esdhc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/mmc/fsl_esdhc.c b/drivers/mmc/fsl_esdhc.c
index e945c0a..ec01795 100644
--- a/drivers/mmc/fsl_esdhc.c
+++ b/drivers/mmc/fsl_esdhc.c
@@ -601,8 +601,7 @@ int fsl_esdhc_mmc_init(bd_t *bis)
{
struct fsl_esdhc_cfg *cfg;
- cfg = malloc(sizeof(struct fsl_esdhc_cfg));
- memset(cfg, 0, sizeof(struct fsl_esdhc_cfg));
+ cfg = calloc(sizeof(struct fsl_esdhc_cfg), 1);
cfg->esdhc_base = CONFIG_SYS_FSL_ESDHC_ADDR;
cfg->sdhc_clk = gd->arch.sdhc_clk;
return fsl_esdhc_initialize(bis, cfg);