summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/arm_pl180_mmci.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/arm_pl180_mmci.c
parentab769f227f79bedae7840f99b6c0c4d66aafc78e (diff)
downloadtalos-obmc-uboot-22cb7d334e296288e53057467dfee26858275516.tar.gz
talos-obmc-uboot-22cb7d334e296288e53057467dfee26858275516.zip
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/arm_pl180_mmci.c')
-rw-r--r--drivers/mmc/arm_pl180_mmci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/arm_pl180_mmci.c b/drivers/mmc/arm_pl180_mmci.c
index 4490e9710b..5a30590673 100644
--- a/drivers/mmc/arm_pl180_mmci.c
+++ b/drivers/mmc/arm_pl180_mmci.c
@@ -365,7 +365,7 @@ int arm_pl180_mmci_init(struct pl180_mmc_host *host)
/* Disable mmc interrupts */
sdi_u32 = readl(&host->base->mask0) & ~SDI_MASK0_MASK;
writel(sdi_u32, &host->base->mask0);
- strncpy(dev->name, host->name, sizeof(dev->name));
+ dev->name = host->name;
dev->ops = &arm_pl180_mmci_ops;
dev->host_caps = host->caps;
dev->voltages = host->voltages;
OpenPOWER on IntegriCloud