aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJarkko Nikula <jarkko.nikula@bitmer.com>2014-02-22 11:01:40 -0500
committerChris Ball <chris@printf.net>2014-02-22 13:17:28 -0500
commit2ca5dc6ffa3d9fefadfff0fee77e1ad52e2c0b72 (patch)
tree6760c0facc2ed3a72016ce2f4101348ffdf5f707
parent5b7d23aa5ddf2d3318370d369d287c9646156ca4 (diff)
mmc: omap: Remove mem_res field from struct mmc_omap_host
Field mem_res in struct mmc_omap_host is used only once in mmc_omap_probe when setting the phys_base field so we may just se the phys_base straight and remove needless mem_res. Signed-off-by: Jarkko Nikula <jarkko.nikula@bitmer.com> Acked-by: Tony Lindgren <tony@atomide.com> Tested-by: Aaro Koskinen <aaro.koskinen@iki.fi> Signed-off-by: Chris Ball <chris@printf.net>
-rw-r--r--drivers/mmc/host/omap.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/drivers/mmc/host/omap.c b/drivers/mmc/host/omap.c
index b438f0addb3c..0d669cfa6af6 100644
--- a/drivers/mmc/host/omap.c
+++ b/drivers/mmc/host/omap.c
@@ -130,7 +130,6 @@ struct mmc_omap_host {
130 u32 dma_rx_burst; 130 u32 dma_rx_burst;
131 struct dma_chan *dma_tx; 131 struct dma_chan *dma_tx;
132 u32 dma_tx_burst; 132 u32 dma_tx_burst;
133 struct resource *mem_res;
134 void __iomem *virt_base; 133 void __iomem *virt_base;
135 unsigned int phys_base; 134 unsigned int phys_base;
136 int irq; 135 int irq;
@@ -1372,10 +1371,9 @@ static int mmc_omap_probe(struct platform_device *pdev)
1372 platform_set_drvdata(pdev, host); 1371 platform_set_drvdata(pdev, host);
1373 1372
1374 host->id = pdev->id; 1373 host->id = pdev->id;
1375 host->mem_res = res;
1376 host->irq = irq; 1374 host->irq = irq;
1377 host->use_dma = 1; 1375 host->use_dma = 1;
1378 host->phys_base = host->mem_res->start; 1376 host->phys_base = res->start;
1379 host->virt_base = ioremap(res->start, resource_size(res)); 1377 host->virt_base = ioremap(res->start, resource_size(res));
1380 if (!host->virt_base) 1378 if (!host->virt_base)
1381 goto err_ioremap; 1379 goto err_ioremap;