diff options
author | David Brownell <dbrownell@users.sourceforge.net> | 2008-06-04 19:15:40 -0400 |
---|---|---|
committer | Andi Kleen <andi@basil.nowhere.org> | 2008-07-16 17:27:02 -0400 |
commit | 2fe2de5f6c283a7d2a82c1b99a19012079cee555 (patch) | |
tree | 7f1b37b9b9d6e2be48650d50c93041be6f52d99b /include | |
parent | cc7e51666d82aedfd6b9a033ca1a10d71c21f1ca (diff) |
ACPI PM: acpi_pm_device_sleep_state() cleanup
Get rid of a superfluous acpi_pm_device_sleep_state() parameter. The
only legitimate value of that parameter must be derived from the first
parameter, which is what all the callers already do. (However, this
does not address the fact that ACPI still doesn't set up those flags.)
Signed-off-by: David Brownell <dbrownell@users.sourceforge.net>
Signed-off-by: Andi Kleen <ak@linux.intel.com>
Acked-by: Pavel Machek <pavel@ucw.cz>
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Signed-off-by: Len Brown <len.brown@intel.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/acpi/acpi_bus.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/acpi/acpi_bus.h b/include/acpi/acpi_bus.h index 2f1c68c7a727..db90a74f8714 100644 --- a/include/acpi/acpi_bus.h +++ b/include/acpi/acpi_bus.h | |||
@@ -376,9 +376,9 @@ acpi_handle acpi_get_pci_rootbridge_handle(unsigned int, unsigned int); | |||
376 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) | 376 | #define DEVICE_ACPI_HANDLE(dev) ((acpi_handle)((dev)->archdata.acpi_handle)) |
377 | 377 | ||
378 | #ifdef CONFIG_PM_SLEEP | 378 | #ifdef CONFIG_PM_SLEEP |
379 | int acpi_pm_device_sleep_state(struct device *, int, int *); | 379 | int acpi_pm_device_sleep_state(struct device *, int *); |
380 | #else /* !CONFIG_PM_SLEEP */ | 380 | #else /* !CONFIG_PM_SLEEP */ |
381 | static inline int acpi_pm_device_sleep_state(struct device *d, int w, int *p) | 381 | static inline int acpi_pm_device_sleep_state(struct device *d, int *p) |
382 | { | 382 | { |
383 | if (p) | 383 | if (p) |
384 | *p = ACPI_STATE_D0; | 384 | *p = ACPI_STATE_D0; |