summaryrefslogtreecommitdiffstats
path: root/drivers/mmc/host/dw_mmc-pci.c
diff options
context:
space:
mode:
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>2013-08-08 12:44:57 +0200
committerChris Ball <cjb@laptop.org>2013-08-25 06:10:05 +0200
commitafeb52d6b579ae4ee9bd4b63dac4579b39f8b1c0 (patch)
tree4f3fbb8421902b6f448be1f4eeb11367a8241e15 /drivers/mmc/host/dw_mmc-pci.c
parentmmc: tmio-mmc: Remove .set_pwr() callback from platform data (diff)
downloadlinux-afeb52d6b579ae4ee9bd4b63dac4579b39f8b1c0.tar.xz
linux-afeb52d6b579ae4ee9bd4b63dac4579b39f8b1c0.zip
mmc: dw_mmc-pci: get resources from a proper BAR
There is a typo when the mapped space is from BAR 2, but BAR 0 is used instead. This patch fixes the typo. Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Tested-by: Prabu Thangamuthu <Prabu.T@synopsys.com> Acked-by: Seungwon Jeon <tgih.jun@samsung.com> Signed-off-by: Chris Ball <cjb@laptop.org>
Diffstat (limited to 'drivers/mmc/host/dw_mmc-pci.c')
-rw-r--r--drivers/mmc/host/dw_mmc-pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/mmc/host/dw_mmc-pci.c b/drivers/mmc/host/dw_mmc-pci.c
index b456b0c35231..7d148d68e494 100644
--- a/drivers/mmc/host/dw_mmc-pci.c
+++ b/drivers/mmc/host/dw_mmc-pci.c
@@ -59,7 +59,7 @@ static int dw_mci_pci_probe(struct pci_dev *pdev,
if (ret)
return ret;
- host->regs = pcim_iomap_table(pdev)[0];
+ host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO];
ret = dw_mci_probe(host);
if (ret)