diff options
author | Masahiro Yamada <yamada.masahiro@socionext.com> | 2016-04-22 20:59:31 +0900 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-04-25 15:10:42 -0400 |
commit | cacd1d2f33da2d78e8568f2e48539a4a57de20ae (patch) | |
tree | b12a2cae4611422b07152eee43c61f1c0ab0f668 /drivers/mmc/pci_mmc.c | |
parent | e52e334e5cb493e19377d23a00aa4d021fc229ba (diff) | |
download | u-boot-cacd1d2f33da2d78e8568f2e48539a4a57de20ae.tar.gz |
mmc: sdhci: add const qualifier to the name of struct sdhci_host
This allows to drop annoying (char *) casts when setting the host
name of struct sdhci_host.
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'drivers/mmc/pci_mmc.c')
-rw-r--r-- | drivers/mmc/pci_mmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/pci_mmc.c b/drivers/mmc/pci_mmc.c index 5fb71518c4..340eef6a1f 100644 --- a/drivers/mmc/pci_mmc.c +++ b/drivers/mmc/pci_mmc.c @@ -28,7 +28,7 @@ int pci_mmc_init(const char *name, struct pci_device_id *mmc_supported) if (!mmc_host) return -ENOMEM; - mmc_host->name = (char *)name; + mmc_host->name = name; dm_pci_read_config32(dev, PCI_BASE_ADDRESS_0, &iobase); mmc_host->ioaddr = (void *)iobase; mmc_host->quirks = 0; |