diff options
Diffstat (limited to 'drivers/ata')
-rw-r--r-- | drivers/ata/libata-core.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ata/libata-core.c b/drivers/ata/libata-core.c index 794f327e398a..b71a7ef3f92a 100644 --- a/drivers/ata/libata-core.c +++ b/drivers/ata/libata-core.c | |||
@@ -6054,11 +6054,10 @@ int pci_test_config_bits(struct pci_dev *pdev, const struct pci_bits *bits) | |||
6054 | void ata_pci_device_do_suspend(struct pci_dev *pdev, pm_message_t mesg) | 6054 | void ata_pci_device_do_suspend(struct pci_dev *pdev, pm_message_t mesg) |
6055 | { | 6055 | { |
6056 | pci_save_state(pdev); | 6056 | pci_save_state(pdev); |
6057 | pci_disable_device(pdev); | ||
6057 | 6058 | ||
6058 | if (mesg.event == PM_EVENT_SUSPEND) { | 6059 | if (mesg.event == PM_EVENT_SUSPEND) |
6059 | pci_disable_device(pdev); | ||
6060 | pci_set_power_state(pdev, PCI_D3hot); | 6060 | pci_set_power_state(pdev, PCI_D3hot); |
6061 | } | ||
6062 | } | 6061 | } |
6063 | 6062 | ||
6064 | int ata_pci_device_do_resume(struct pci_dev *pdev) | 6063 | int ata_pci_device_do_resume(struct pci_dev *pdev) |