]> git.karo-electronics.de Git - karo-tx-uboot.git/blobdiff - drivers/mmc/sdhci.c
mmc: Convert mmc struct's name array to a pointer
[karo-tx-uboot.git] / drivers / mmc / sdhci.c
index c3425a6ce542903f764de380c06b386974234693..dc6f4e4972b9bb74f8d30085fe0f2b42334a83cf 100644 (file)
@@ -451,7 +451,7 @@ int add_sdhci(struct sdhci_host *host, u32 max_clk, u32 min_clk)
        mmc->priv = host;
        host->mmc = mmc;
 
-       sprintf(mmc->name, "%s", host->name);
+       mmc->name = host->name;
        mmc->ops = &sdhci_ops;
 
        caps = sdhci_readl(host, SDHCI_CAPABILITIES);