diff options
| -rw-r--r-- | drivers/ata/ahci.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c index 6978469eb16d..53f5afd9420c 100644 --- a/drivers/ata/ahci.c +++ b/drivers/ata/ahci.c | |||
| @@ -2241,7 +2241,10 @@ static int ahci_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
| 2241 | if (rc) | 2241 | if (rc) |
| 2242 | return rc; | 2242 | return rc; |
| 2243 | 2243 | ||
| 2244 | rc = pcim_iomap_regions(pdev, 1 << AHCI_PCI_BAR, DRV_NAME); | 2244 | /* AHCI controllers often implement SFF compatible interface. |
| 2245 | * Grab all PCI BARs just in case. | ||
| 2246 | */ | ||
| 2247 | rc = pcim_iomap_regions_request_all(pdev, 1 << AHCI_PCI_BAR, DRV_NAME); | ||
| 2245 | if (rc == -EBUSY) | 2248 | if (rc == -EBUSY) |
| 2246 | pcim_pin_device(pdev); | 2249 | pcim_pin_device(pdev); |
| 2247 | if (rc) | 2250 | if (rc) |
