summaryrefslogtreecommitdiff
path: root/drivers/mmc/tegra_mmc.c
diff options
context:
space:
mode:
authorPantelis Antoniou <panto@antoniou-consulting.com>2014-03-10 20:05:51 +0200
committerPantelis Antoniou <panto@antoniou-consulting.com>2014-03-24 11:32:10 +0200
commit22cb7d334e296288e53057467dfee26858275516 (patch)
treec8a1348c5f490f8cc5c88e601fd89f336ae85475 /drivers/mmc/tegra_mmc.c
parentab769f227f79bedae7840f99b6c0c4d66aafc78e (diff)
downloadu-boot-imx-22cb7d334e296288e53057467dfee26858275516.zip
u-boot-imx-22cb7d334e296288e53057467dfee26858275516.tar.gz
u-boot-imx-22cb7d334e296288e53057467dfee26858275516.tar.bz2
mmc: Convert mmc struct's name array to a pointer
Using an array is pointless; even more pointless (and scary) is using sprintf to fill it without a format string. Signed-off-by: Pantelis Antoniou <panto@antoniou-consulting.com>
Diffstat (limited to 'drivers/mmc/tegra_mmc.c')
-rw-r--r--drivers/mmc/tegra_mmc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/tegra_mmc.c b/drivers/mmc/tegra_mmc.c
index 5f7b590..e8fbb63 100644
--- a/drivers/mmc/tegra_mmc.c
+++ b/drivers/mmc/tegra_mmc.c
@@ -563,7 +563,7 @@ static int do_mmc_init(int dev_index)
mmc = &mmc_dev[dev_index];
- sprintf(mmc->name, "Tegra SD/MMC");
+ mmc->name = "Tegra SD/MMC";
mmc->priv = host;
mmc->ops = &tegra_mmc_ops;