]> git.kernelconcepts.de Git - karo-tx-uboot.git/blobdiff - drivers/mmc/fsl_esdhc.c
esdhc: memset mmc struct before putting into use
[karo-tx-uboot.git] / drivers / mmc / fsl_esdhc.c
index a9fe911c8b313340a5a049ac1025464d403999f4..1f9c305131b4284b1585e0ac0d121d501fdac0e4 100644 (file)
@@ -533,6 +533,7 @@ int fsl_esdhc_initialize(bd_t *bis, struct fsl_esdhc_cfg *cfg)
        if (!mmc)
                return -ENOMEM;
 
+       memset(mmc, 0, sizeof(struct mmc));
        sprintf(mmc->name, "FSL_SDHC");
        regs = (struct fsl_esdhc *)cfg->esdhc_base;