PCI / ACPI PM: Rework some debug messages
Move a debug message from acpi_pci_sleep_wake() to acpi_pm_device_sleep_wake() and use the standard dev_*() macros in there. Reviewed-by: Matthew Garrett <mjg59@srcf.ucam.org> Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
This commit is contained in:
committed by
Jesse Barnes
parent
5bcc2fb4e8
commit
df8db91fc3
@@ -111,17 +111,8 @@ static bool acpi_pci_can_wakeup(struct pci_dev *dev)
|
||||
|
||||
static int acpi_pci_sleep_wake(struct pci_dev *dev, bool enable)
|
||||
{
|
||||
int error;
|
||||
|
||||
if (!acpi_pci_can_wakeup(dev))
|
||||
return 0;
|
||||
|
||||
error = acpi_pm_device_sleep_wake(&dev->dev, enable);
|
||||
if (!error)
|
||||
dev_info(&dev->dev, "wake-up capability %s by ACPI\n",
|
||||
enable ? "enabled" : "disabled");
|
||||
|
||||
return error;
|
||||
return acpi_pci_can_wakeup(dev) ?
|
||||
acpi_pm_device_sleep_wake(&dev->dev, enable) : 0;
|
||||
}
|
||||
|
||||
static struct pci_platform_pm_ops acpi_pci_platform_pm = {
|
||||
|
||||
Reference in New Issue
Block a user