aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ata/sata_nv.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ata/sata_nv.c')
-rw-r--r--drivers/ata/sata_nv.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/sata_nv.c b/drivers/ata/sata_nv.c
index aea005d5663c..095ef1b2cd0e 100644
--- a/drivers/ata/sata_nv.c
+++ b/drivers/ata/sata_nv.c
@@ -1575,8 +1575,11 @@ static int nv_pci_device_resume(struct pci_dev *pdev)
1575{ 1575{
1576 struct ata_host *host = dev_get_drvdata(&pdev->dev); 1576 struct ata_host *host = dev_get_drvdata(&pdev->dev);
1577 struct nv_host_priv *hpriv = host->private_data; 1577 struct nv_host_priv *hpriv = host->private_data;
1578 int rc;
1578 1579
1579 ata_pci_device_do_resume(pdev); 1580 rc = ata_pci_device_do_resume(pdev);
1581 if(rc)
1582 return rc;
1580 1583
1581 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) { 1584 if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
1582 if(hpriv->type >= CK804) { 1585 if(hpriv->type >= CK804) {