mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 18:51:56 -04:00
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 <[email protected]> Tested-by: Prabu Thangamuthu <[email protected]> Acked-by: Seungwon Jeon <[email protected]> Signed-off-by: Chris Ball <[email protected]>
This commit is contained in:
parent
3af9d15c71
commit
afeb52d6b5
1 changed files with 1 additions and 1 deletions
|
|
@ -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)
|
||||
|
|
|
|||
Loading…
Reference in a new issue