device_pm.c (4511708b9a044f2bc83c7c7f7f8a2c45ec488219) | device_pm.c (c8377adfa78103be5380200eb9dab764d7ca890e) |
---|---|
1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * drivers/acpi/device_pm.c - ACPI device power management routines. 4 * 5 * Copyright (C) 2012, Intel Corp. 6 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 7 * 8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 483 unchanged lines hidden (view full) --- 492 goto out; 493 494 status = acpi_install_notify_handler(adev->handle, ACPI_SYSTEM_NOTIFY, 495 acpi_pm_notify_handler, NULL); 496 if (ACPI_FAILURE(status)) 497 goto out; 498 499 mutex_lock(&acpi_pm_notifier_lock); | 1// SPDX-License-Identifier: GPL-2.0-only 2/* 3 * drivers/acpi/device_pm.c - ACPI device power management routines. 4 * 5 * Copyright (C) 2012, Intel Corp. 6 * Author: Rafael J. Wysocki <rafael.j.wysocki@intel.com> 7 * 8 * ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ --- 483 unchanged lines hidden (view full) --- 492 goto out; 493 494 status = acpi_install_notify_handler(adev->handle, ACPI_SYSTEM_NOTIFY, 495 acpi_pm_notify_handler, NULL); 496 if (ACPI_FAILURE(status)) 497 goto out; 498 499 mutex_lock(&acpi_pm_notifier_lock); |
500 adev->wakeup.ws = wakeup_source_register(dev_name(&adev->dev)); | 500 adev->wakeup.ws = wakeup_source_register(&adev->dev, 501 dev_name(&adev->dev)); |
501 adev->wakeup.context.dev = dev; 502 adev->wakeup.context.func = func; 503 adev->wakeup.flags.notifier_present = true; 504 mutex_unlock(&acpi_pm_notifier_lock); 505 506 out: 507 mutex_unlock(&acpi_pm_notifier_install_lock); 508 return status; --- 828 unchanged lines hidden --- | 502 adev->wakeup.context.dev = dev; 503 adev->wakeup.context.func = func; 504 adev->wakeup.flags.notifier_present = true; 505 mutex_unlock(&acpi_pm_notifier_lock); 506 507 out: 508 mutex_unlock(&acpi_pm_notifier_install_lock); 509 return status; --- 828 unchanged lines hidden --- |