Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 999cce4a authored by Rafael J. Wysocki's avatar Rafael J. Wysocki Committed by Jesse Barnes
Browse files

PCI PM: Return error codes from pci_pm_resume()



Currently pci_pm_resume() always returns 0, which makes the error
variable defined in there a bit pointless.  Make pci_pm_resume()
return error codes obtained from drivers' callbacks.

Signed-off-by: default avatarRafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: default avatarJesse Barnes <jbarnes@virtuousgeek.org>
parent fdcdaf6c
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -722,7 +722,7 @@ static int pci_pm_resume(struct device *dev)
		pci_pm_reenable_device(pci_dev);
		pci_pm_reenable_device(pci_dev);
	}
	}


	return 0;
	return error;
}
}


#else /* !CONFIG_SUSPEND */
#else /* !CONFIG_SUSPEND */