mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 09:36:22 +02:00
Merge branch 'acpi-tad'
Merge an ACPI TAD (Time and Alarm Device) driver fix for 7.2-rc2. * acpi-tad: ACPI: TAD: Check AC wake capability before enabling wakeup
This commit is contained in:
commit
973772c7cf
|
|
@ -856,7 +856,7 @@ static int acpi_tad_probe(struct platform_device *pdev)
|
|||
* runtime suspend. Everything else should be taken care of by the ACPI
|
||||
* PM domain callbacks.
|
||||
*/
|
||||
if (ACPI_TAD_AC_WAKE) {
|
||||
if (caps & ACPI_TAD_AC_WAKE) {
|
||||
device_init_wakeup(dev, true);
|
||||
dev_pm_set_driver_flags(dev, DPM_FLAG_SMART_SUSPEND |
|
||||
DPM_FLAG_MAY_SKIP_RESUME);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user