diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-06-27 17:25:38 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-01 07:30:58 -0400 |
commit | 17621e11fda095459e2f986c019f52686c7a4ffb (patch) | |
tree | b034b7594f751b49e83b61ebc58354b33cfa8fd4 /include/acpi | |
parent | 6887a4131da3adaab011613776d865f4bcfb5678 (diff) |
ACPI / PM: Drop pm_message_t argument from device suspend callback
None of the drivers implementing the ACPI device suspend callback
uses the pm_message_t argument of it, so this argument may be dropped
entirely from that callback. This will simplify switching the ACPI
bus type to PM handling based on struct dev_pm_ops.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'include/acpi')
-rw-r--r-- | include/acpi/acpi_bus.h | 3 | ||||
-rw-r--r-- | include/acpi/processor.h | 2 |
2 files changed, 2 insertions, 3 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 9e6e1c6eb60a..c2bbec76ba10 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -117,8 +117,7 @@ struct acpi_device; | |||
117 | typedef int (*acpi_op_add) (struct acpi_device * device); | 117 | typedef int (*acpi_op_add) (struct acpi_device * device); |
118 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); | 118 | typedef int (*acpi_op_remove) (struct acpi_device * device, int type); |
119 | typedef int (*acpi_op_start) (struct acpi_device * device); | 119 | typedef int (*acpi_op_start) (struct acpi_device * device); |
120 | typedef int (*acpi_op_suspend) (struct acpi_device * device, | 120 | typedef int (*acpi_op_suspend) (struct acpi_device * device); |
121 | pm_message_t state); | ||
122 | typedef int (*acpi_op_resume) (struct acpi_device * device); | 121 | typedef int (*acpi_op_resume) (struct acpi_device * device); |
123 | typedef int (*acpi_op_bind) (struct acpi_device * device); | 122 | typedef int (*acpi_op_bind) (struct acpi_device * device); |
124 | typedef int (*acpi_op_unbind) (struct acpi_device * device); | 123 | typedef int (*acpi_op_unbind) (struct acpi_device * device); |
diff --git a/include/acpi/processor.h b/include/acpi/processor.h index 9d650476d5dc..8a1894a6eba2 100644 --- a/include/acpi/processor.h +++ b/include/acpi/processor.h | |||
@@ -334,7 +334,7 @@ int acpi_processor_cst_has_changed(struct acpi_processor *pr); | |||
334 | int acpi_processor_hotplug(struct acpi_processor *pr); | 334 | int acpi_processor_hotplug(struct acpi_processor *pr); |
335 | int acpi_processor_power_exit(struct acpi_processor *pr, | 335 | int acpi_processor_power_exit(struct acpi_processor *pr, |
336 | struct acpi_device *device); | 336 | struct acpi_device *device); |
337 | int acpi_processor_suspend(struct acpi_device * device, pm_message_t state); | 337 | int acpi_processor_suspend(struct acpi_device * device); |
338 | int acpi_processor_resume(struct acpi_device * device); | 338 | int acpi_processor_resume(struct acpi_device * device); |
339 | extern struct cpuidle_driver acpi_idle_driver; | 339 | extern struct cpuidle_driver acpi_idle_driver; |
340 | 340 | ||