diff options
author | Tejun Heo <htejun@gmail.com> | 2006-12-26 05:39:50 -0500 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-02-09 17:39:30 -0500 |
commit | 553c4aa630af7bc885e056d0436e4eb7f238579b (patch) | |
tree | 5a6cf3b15e05309fcfbdb5f68471e2a20b235613 /include/linux/libata.h | |
parent | 8bfa79fcb81d2bdb043f60ab4171704467808b55 (diff) |
libata: handle pci_enable_device() failure while resuming
Handle pci_enable_device() failure while resuming. This patch kills
the "ignoring return value of 'pci_enable_device'" warning message and
propagates __must_check through ata_pci_device_do_resume().
Signed-off-by: Tejun Heo <htejun@gmail.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'include/linux/libata.h')
-rw-r--r-- | include/linux/libata.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index dab4dc505ce7..a8ecaaad55ff 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -716,7 +716,7 @@ extern int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_i | |||
716 | unsigned int n_ports); | 716 | unsigned int n_ports); |
717 | extern void ata_pci_remove_one (struct pci_dev *pdev); | 717 | extern void ata_pci_remove_one (struct pci_dev *pdev); |
718 | extern void ata_pci_device_do_suspend(struct pci_dev *pdev, pm_message_t mesg); | 718 | extern void ata_pci_device_do_suspend(struct pci_dev *pdev, pm_message_t mesg); |
719 | extern void ata_pci_device_do_resume(struct pci_dev *pdev); | 719 | extern int __must_check ata_pci_device_do_resume(struct pci_dev *pdev); |
720 | extern int ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg); | 720 | extern int ata_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg); |
721 | extern int ata_pci_device_resume(struct pci_dev *pdev); | 721 | extern int ata_pci_device_resume(struct pci_dev *pdev); |
722 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); | 722 | extern int ata_pci_clear_simplex(struct pci_dev *pdev); |