aboutsummaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
Diffstat (limited to 'drivers')
-rw-r--r--drivers/acpi/device_pm.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/acpi/device_pm.c b/drivers/acpi/device_pm.c
index 4cbc9505b365..3ef075b71870 100644
--- a/drivers/acpi/device_pm.c
+++ b/drivers/acpi/device_pm.c
@@ -497,7 +497,7 @@ int acpi_pm_device_sleep_state(struct device *dev, int *d_min_p, int d_max_in)
497 acpi_handle handle = DEVICE_ACPI_HANDLE(dev); 497 acpi_handle handle = DEVICE_ACPI_HANDLE(dev);
498 struct acpi_device *adev; 498 struct acpi_device *adev;
499 499
500 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &adev))) { 500 if (!handle || acpi_bus_get_device(handle, &adev)) {
501 dev_dbg(dev, "ACPI handle without context in %s!\n", __func__); 501 dev_dbg(dev, "ACPI handle without context in %s!\n", __func__);
502 return -ENODEV; 502 return -ENODEV;
503 } 503 }
@@ -574,7 +574,7 @@ int acpi_pm_device_run_wake(struct device *phys_dev, bool enable)
574 return -EINVAL; 574 return -EINVAL;
575 575
576 handle = DEVICE_ACPI_HANDLE(phys_dev); 576 handle = DEVICE_ACPI_HANDLE(phys_dev);
577 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &adev))) { 577 if (!handle || acpi_bus_get_device(handle, &adev)) {
578 dev_dbg(phys_dev, "ACPI handle without context in %s!\n", 578 dev_dbg(phys_dev, "ACPI handle without context in %s!\n",
579 __func__); 579 __func__);
580 return -ENODEV; 580 return -ENODEV;
@@ -618,7 +618,7 @@ int acpi_pm_device_sleep_wake(struct device *dev, bool enable)
618 return -EINVAL; 618 return -EINVAL;
619 619
620 handle = DEVICE_ACPI_HANDLE(dev); 620 handle = DEVICE_ACPI_HANDLE(dev);
621 if (!handle || ACPI_FAILURE(acpi_bus_get_device(handle, &adev))) { 621 if (!handle || acpi_bus_get_device(handle, &adev)) {
622 dev_dbg(dev, "ACPI handle without context in %s!\n", __func__); 622 dev_dbg(dev, "ACPI handle without context in %s!\n", __func__);
623 return -ENODEV; 623 return -ENODEV;
624 } 624 }