Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Andy Shevchenko and committed by
Chris Ball
afeb52d6 3af9d15c

+1 -1
+1 -1
drivers/mmc/host/dw_mmc-pci.c
··· 59 59 if (ret) 60 60 return ret; 61 61 62 - host->regs = pcim_iomap_table(pdev)[0]; 62 + host->regs = pcim_iomap_table(pdev)[PCI_BAR_NO]; 63 63 64 64 ret = dw_mci_probe(host); 65 65 if (ret)