libata: handle ata_pci_device_do_resume() failure while resuming
Since commit:553c4aa630af7bc885e056d0436e4eb7f238579b ata_pci_device_do_resume() can return error code, all callers was updated except this one. Signed-off-by: Monakhov Dmitriy <dmonakhov@openvz.org> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Jeff Garzik <jeff@garzik.org>
This commit is contained in:
parent
8343f88999
commit
5aea408df5
|
@ -642,7 +642,9 @@ static int inic_pci_device_resume(struct pci_dev *pdev)
|
||||||
void __iomem *mmio_base = host->iomap[MMIO_BAR];
|
void __iomem *mmio_base = host->iomap[MMIO_BAR];
|
||||||
int rc;
|
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) {
|
||||||
rc = init_controller(mmio_base, hpriv->cached_hctl);
|
rc = init_controller(mmio_base, hpriv->cached_hctl);
|
||||||
|
|
Loading…
Reference in New Issue