static const struct socfpga_system_manager *system_manager_base =
                (void *)SOCFPGA_SYSMGR_ADDRESS;
 
-static char *SOCFPGA_NAME = "SOCFPGA DWMMC";
-
 static void socfpga_dwmci_clksel(struct dwmci_host *host)
 {
        unsigned int drvsel;
 
 int socfpga_dwmmc_init(u32 regbase, int bus_width, int index)
 {
-       struct dwmci_host *host = NULL;
+       struct dwmci_host *host;
+
+       /* calloc for zero init */
        host = calloc(sizeof(struct dwmci_host), 1);
        if (!host) {
                printf("dwmci_host calloc fail!\n");
                return -1;
        }
 
-       host->name = SOCFPGA_NAME;
+       host->name = "SOCFPGA DWMMC";
        host->ioaddr = (void *)regbase;
        host->buswidth = bus_width;
        host->clksel = socfpga_dwmci_clksel;