Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit afeb52d6 authored by Andy Shevchenko's avatar Andy Shevchenko Committed by Chris Ball
Browse files

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: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: default avatarPrabu Thangamuthu <Prabu.T@synopsys.com>
Acked-by: default avatarSeungwon Jeon <tgih.jun@samsung.com>
Signed-off-by: default avatarChris Ball <cjb@laptop.org>
parent 3af9d15c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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)