Commit 2ca5dc6f authored by Jarkko Nikula's avatar Jarkko Nikula Committed by Chris Ball

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: default avatarJarkko Nikula <jarkko.nikula@bitmer.com>
Acked-by: default avatarTony Lindgren <tony@atomide.com>
Tested-by: default avatarAaro Koskinen <aaro.koskinen@iki.fi>
Signed-off-by: default avatarChris Ball <chris@printf.net>
parent 5b7d23aa
...@@ -130,7 +130,6 @@ struct mmc_omap_host { ...@@ -130,7 +130,6 @@ struct mmc_omap_host {
u32 dma_rx_burst; u32 dma_rx_burst;
struct dma_chan *dma_tx; struct dma_chan *dma_tx;
u32 dma_tx_burst; u32 dma_tx_burst;
struct resource *mem_res;
void __iomem *virt_base; void __iomem *virt_base;
unsigned int phys_base; unsigned int phys_base;
int irq; int irq;
...@@ -1372,10 +1371,9 @@ static int mmc_omap_probe(struct platform_device *pdev) ...@@ -1372,10 +1371,9 @@ static int mmc_omap_probe(struct platform_device *pdev)
platform_set_drvdata(pdev, host); platform_set_drvdata(pdev, host);
host->id = pdev->id; host->id = pdev->id;
host->mem_res = res;
host->irq = irq; host->irq = irq;
host->use_dma = 1; host->use_dma = 1;
host->phys_base = host->mem_res->start; host->phys_base = res->start;
host->virt_base = ioremap(res->start, resource_size(res)); host->virt_base = ioremap(res->start, resource_size(res));
if (!host->virt_base) if (!host->virt_base)
goto err_ioremap; goto err_ioremap;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment