|
@@ -1575,8 +1575,11 @@ static int nv_pci_device_resume(struct pci_dev *pdev)
|
|
{
|
|
{
|
|
struct ata_host *host = dev_get_drvdata(&pdev->dev);
|
|
struct ata_host *host = dev_get_drvdata(&pdev->dev);
|
|
struct nv_host_priv *hpriv = host->private_data;
|
|
struct nv_host_priv *hpriv = host->private_data;
|
|
|
|
+ int rc;
|
|
|
|
|
|
- ata_pci_device_do_resume(pdev);
|
|
|
|
|
|
+ rc = ata_pci_device_do_resume(pdev);
|
|
|
|
+ if(rc)
|
|
|
|
+ return rc;
|
|
|
|
|
|
if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
|
|
if (pdev->dev.power.power_state.event == PM_EVENT_SUSPEND) {
|
|
if(hpriv->type >= CK804) {
|
|
if(hpriv->type >= CK804) {
|