Bjorn Helgaas
09d3154a6f
PM: wakeup: Unify device_init_wakeup() for PM_SLEEP and !PM_SLEEP
...
Previously the CONFIG_PM_SLEEP and !CONFIG_PM_SLEEP device_init_wakeup()
implementations differed in confusing ways:
- The PM_SLEEP version checked for a NULL device pointer and returned
-EINVAL, while the !PM_SLEEP version did not and would simply
dereference a NULL pointer.
- When called with "false", the !PM_SLEEP version cleared "capable" and
"enable" in the opposite order of the PM_SLEEP version. That was
harmless because for !PM_SLEEP they're simple assignments, but it's
unnecessary confusion.
Use a simplified version of the PM_SLEEP implementation for both cases.
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com >
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com >
2022-07-05 20:48:46 +02:00
..
2022-06-28 21:53:30 +02:00
2022-06-03 11:48:47 -07:00
2022-06-05 17:14:03 -07:00
2022-06-30 08:21:43 +09:00
2022-07-05 20:48:46 +02:00
2022-06-21 16:36:09 +02:00
2022-06-26 14:12:56 -07:00
2022-06-20 11:06:17 +02:00
2022-06-09 15:34:08 -07:00
2022-06-08 12:27:08 +00:00
2022-06-10 15:21:23 +02:00
2022-06-28 17:56:57 +02:00
2022-05-23 19:18:51 +02:00
2022-06-24 17:09:01 +08:00
2022-06-30 05:11:17 +09:00
2022-05-29 11:38:27 -07:00
2022-06-20 08:38:29 -05:00
2022-05-23 19:32:59 -07:00
2022-06-17 10:43:20 +02:00
2022-07-01 09:27:55 +10:00
2022-06-24 17:01:31 -07:00
2022-07-01 09:27:55 +10:00
2022-06-08 12:28:13 +00:00
2022-06-10 08:41:28 +00:00
2022-07-01 11:53:29 -07:00
2022-06-14 22:11:54 +02:00
2022-06-08 18:05:45 +02:00
2022-06-20 09:49:52 +02:00
2022-06-24 16:41:03 -03:00
2022-06-07 15:00:29 -07:00
2022-06-03 11:36:34 -07:00
2022-06-22 15:45:56 +02:00
2022-06-10 08:57:19 +01:00
2022-06-02 15:23:54 -07:00
2022-05-22 15:58:30 +10:00
2022-05-24 08:08:24 -05:00
2022-06-29 19:48:04 -04:00
2022-06-03 11:17:49 -07:00
2022-06-06 11:18:20 +02:00
2022-06-02 15:23:54 -07:00
2022-06-19 09:37:29 -05:00
2022-06-15 10:05:56 -07:00
2022-06-16 16:46:08 +02:00
2022-06-30 15:26:55 -07:00
2022-06-29 14:05:00 +01:00
2022-06-24 11:57:19 -07:00
2022-06-30 08:24:33 +02:00
2022-05-25 16:18:27 -07:00
2022-05-25 15:02:26 +02:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-05-23 21:06:11 -07:00
2022-05-28 11:15:54 -07:00
2022-06-29 09:32:06 -07:00
2022-06-03 11:36:34 -07:00
2022-05-23 19:18:51 +02:00
2022-05-25 21:51:32 -07:00
2022-06-07 20:38:09 +01:00
2022-06-03 11:48:47 -07:00
2022-06-02 15:23:54 -07:00
2022-07-01 11:19:14 -07:00
2022-06-27 22:43:57 -04:00
2022-06-03 11:48:47 -07:00
2022-06-14 12:20:31 +02:00
2022-06-20 11:35:43 +01:00
2022-06-10 09:10:16 +02:00
2022-05-28 06:15:27 -06:00
2022-05-30 14:44:27 +02:00
2022-07-01 13:00:47 -07:00
2022-06-03 11:17:49 -07:00
2022-06-23 19:11:28 +02:00
2022-06-16 21:32:09 -04:00
2022-06-24 13:45:23 +02:00
2022-06-24 02:49:48 -04:00
2022-06-01 13:49:15 -07:00
2022-06-27 08:05:35 -04:00
2022-07-01 09:27:55 +10:00
2022-06-03 11:36:34 -07:00
2022-06-27 08:05:35 -04:00
2022-06-09 12:20:34 +02:00
2022-06-23 15:29:18 +02:00
2022-06-05 09:25:12 -07:00
2022-06-05 09:25:12 -07:00