summaryrefslogtreecommitdiff
path: root/drivers/mmc/pxa_mmc_gen.c
diff options
context:
space:
mode:
authorPantelis Antoniou <panto@antoniou-consulting.com>2014-03-10 18:05:51 (GMT)
committerPantelis Antoniou <panto@antoniou-consulting.com>2014-03-24 09:32:10 (GMT)
commit22cb7d334e296288e53057467dfee26858275516 (patch)
treec8a1348c5f490f8cc5c88e601fd89f336ae85475 /drivers/mmc/pxa_mmc_gen.c
parentab769f227f79bedae7840f99b6c0c4d66aafc78e (diff)
downloadu-boot-22cb7d334e296288e53057467dfee26858275516.tar.xz
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/pxa_mmc_gen.c')
-rw-r--r--drivers/mmc/pxa_mmc_gen.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/pxa_mmc_gen.c b/drivers/mmc/pxa_mmc_gen.c
index 4694c8f..188e1d4 100644
--- a/drivers/mmc/pxa_mmc_gen.c
+++ b/drivers/mmc/pxa_mmc_gen.c
@@ -402,7 +402,7 @@ int pxa_mmc_register(int card_index)
mmc->priv = priv;
- sprintf(mmc->name, "PXA MMC");
+ mmc->name = "PXA MMC";
mmc->ops = &pxa_mmc_ops;
mmc->voltages = MMC_VDD_32_33 | MMC_VDD_33_34;