summaryrefslogtreecommitdiffstats
path: root/drivers/mci
diff options
context:
space:
mode:
authorTrent Piepho <tpiepho@kymetacorp.com>2015-11-18 21:12:53 +0000
committerSascha Hauer <s.hauer@pengutronix.de>2015-11-19 08:52:10 +0100
commit9e45df8ebb1716a305049342ba65639fc856dabd (patch)
treef78e5f46c10961801346bd7e8f791c6a374b8e62 /drivers/mci
parent5537d653d2a7d742f29ba31a9c9932bbbe3e6774 (diff)
downloadbarebox-9e45df8ebb1716a305049342ba65639fc856dabd.tar.gz
barebox-9e45df8ebb1716a305049342ba65639fc856dabd.tar.xz
mci: dw_mmc: Delete devname in platform_data
Nothing used it. Also delete the local mci alias pointer to host->mci in dw_mmc_probe(). It only saved a few characters and all the references but one are using host->mci. Signed-off-by: Trent Piepho <tpiepho@kymetacorp.com> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/mci')
-rw-r--r--drivers/mci/dw_mmc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/drivers/mci/dw_mmc.c b/drivers/mci/dw_mmc.c
index f8ff3891d8..18ddd167bf 100644
--- a/drivers/mci/dw_mmc.c
+++ b/drivers/mci/dw_mmc.c
@@ -676,11 +676,9 @@ static int dw_mmc_detect(struct device_d *dev)
static int dw_mmc_probe(struct device_d *dev)
{
struct dwmci_host *host;
- struct mci_host *mci;
struct dw_mmc_platform_data *pdata = dev->platform_data;
host = xzalloc(sizeof(*host));
- mci = &host->mci;
host->clk_biu = clk_get(dev, "biu");
if (IS_ERR(host->clk_biu))
@@ -710,14 +708,13 @@ static int dw_mmc_probe(struct device_d *dev)
host->mci.host_caps = MMC_CAP_4_BIT_DATA | MMC_CAP_8_BIT_DATA;
if (pdata) {
- mci->devname = pdata->devname;
host->ciu_div = pdata->ciu_div;
host->mci.host_caps &= ~MMC_CAP_BIT_DATA_MASK;
host->mci.host_caps |= pdata->bus_width_caps;
} else if (dev->device_node) {
const char *alias = of_alias_get(dev->device_node);
if (alias)
- mci->devname = xstrdup(alias);
+ host->mci.devname = xstrdup(alias);
of_property_read_u32(dev->device_node, "dw-mshc-ciu-div",
&host->ciu_div);
}