From: Andy Shevchenko Date: Thu, 8 Aug 2013 10:44:57 +0000 (+0300) Subject: mmc: dw_mmc-pci: get resources from a proper BAR X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=afeb52d6b579ae4ee9bd4b63dac4579b39f8b1c0;p=linux-beck.git 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 Tested-by: Prabu Thangamuthu Acked-by: Seungwon Jeon Signed-off-by: Chris Ball --- 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)