diff options
Diffstat (limited to 'drivers/ata/sata_sil24.c')
-rw-r--r-- | drivers/ata/sata_sil24.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/drivers/ata/sata_sil24.c b/drivers/ata/sata_sil24.c index 5aa288d2fb86..da982ed4bc47 100644 --- a/drivers/ata/sata_sil24.c +++ b/drivers/ata/sata_sil24.c | |||
@@ -1200,8 +1200,11 @@ static int sil24_pci_device_resume(struct pci_dev *pdev) | |||
1200 | { | 1200 | { |
1201 | struct ata_host *host = dev_get_drvdata(&pdev->dev); | 1201 | struct ata_host *host = dev_get_drvdata(&pdev->dev); |
1202 | struct sil24_host_priv *hpriv = host->private_data; | 1202 | struct sil24_host_priv *hpriv = host->private_data; |
1203 | int rc; | ||
1203 | 1204 | ||
1204 | ata_pci_device_do_resume(pdev); | 1205 | rc = ata_pci_device_do_resume(pdev); |
1206 | if (rc) | ||
1207 | return rc; | ||
1205 | 1208 | ||
1206 | if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) | 1209 | if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) |
1207 | writel(HOST_CTRL_GLOBAL_RST, hpriv->host_base + HOST_CTRL); | 1210 | writel(HOST_CTRL_GLOBAL_RST, hpriv->host_base + HOST_CTRL); |