aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/ahci.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/ahci.c')
-rw-r--r--drivers/ata/ahci.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/ahci.c b/drivers/ata/ahci.c
index ca53d5a9c0c5..03b7a0051887 100644
--- a/drivers/ata/ahci.c
+++ b/drivers/ata/ahci.c
@@ -1397,7 +1397,9 @@ static int ahci_pci_device_resume(struct pci_dev *pdev)
1397 void __iomem *mmio = host->mmio_base; 1397 void __iomem *mmio = host->mmio_base;
1398 int rc; 1398 int rc;
1399 1399
1400 ata_pci_device_do_resume(pdev); 1400 rc = ata_pci_device_do_resume(pdev);
1401 if (rc)
1402 return rc;
1401 1403
1402 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { 1404 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
1403 rc = ahci_reset_controller(mmio, pdev); 1405 rc = ahci_reset_controller(mmio, pdev);