aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_inic162x.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_inic162x.c')
-rw-r--r--drivers/ata/sata_inic162x.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/ata/sata_inic162x.c b/drivers/ata/sata_inic162x.c
index 4f5a6a1fb0ed..11c3079ab6cc 100644
--- a/drivers/ata/sata_inic162x.c
+++ b/drivers/ata/sata_inic162x.c
@@ -642,7 +642,9 @@ static int inic_pci_device_resume(struct pci_dev *pdev)
642 void __iomem *mmio_base = host->iomap[MMIO_BAR]; 642 void __iomem *mmio_base = host->iomap[MMIO_BAR];
643 int rc; 643 int rc;
644 644
645 ata_pci_device_do_resume(pdev); 645 rc = ata_pci_device_do_resume(pdev);
646 if (rc)
647 return rc;
646 648
647 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { 649 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
648 rc = init_controller(mmio_base, hpriv->cached_hctl); 650 rc = init_controller(mmio_base, hpriv->cached_hctl);