Skip to content

Commit

Permalink
mmc: dw_mmc-pci: get resources from a proper BAR
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Andy Shevchenko authored and Chris Ball committed Aug 25, 2013
1 parent 3af9d15 commit afeb52d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/mmc/host/dw_mmc-pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit afeb52d

Please sign in to comment.