diff options
author | Rafael J. Wysocki <rjw@sisk.pl> | 2012-06-27 17:26:26 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rjw@sisk.pl> | 2012-07-01 07:31:00 -0400 |
commit | e8110b64af8b7cce96d1878276770c76cb9c01d5 (patch) | |
tree | 8a433a4fda149d49a59d34d7e26022f6d5dc36fd /drivers/acpi/processor_idle.c | |
parent | 167cffb646aa4a7f3267b07eae1af16b54bc0e9b (diff) |
ACPI: Use struct dev_pm_ops for power management in processor driver
Make the ACPI processor driver define its PM callbacks through
a struct dev_pm_ops object rather than by using legacy PM hooks
in struct acpi_device_ops.
Signed-off-by: Rafael J. Wysocki <rjw@sisk.pl>
Diffstat (limited to 'drivers/acpi/processor_idle.c')
-rw-r--r-- | drivers/acpi/processor_idle.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/processor_idle.c b/drivers/acpi/processor_idle.c index e28af8d38239..6d9ec3e0b52e 100644 --- a/drivers/acpi/processor_idle.c +++ b/drivers/acpi/processor_idle.c | |||
@@ -241,7 +241,7 @@ static void acpi_idle_bm_rld_restore(void) | |||
241 | acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, saved_bm_rld); | 241 | acpi_write_bit_register(ACPI_BITREG_BUS_MASTER_RLD, saved_bm_rld); |
242 | } | 242 | } |
243 | 243 | ||
244 | int acpi_processor_suspend(struct acpi_device * device) | 244 | int acpi_processor_suspend(struct device *dev) |
245 | { | 245 | { |
246 | if (acpi_idle_suspend == 1) | 246 | if (acpi_idle_suspend == 1) |
247 | return 0; | 247 | return 0; |
@@ -251,7 +251,7 @@ int acpi_processor_suspend(struct acpi_device * device) | |||
251 | return 0; | 251 | return 0; |
252 | } | 252 | } |
253 | 253 | ||
254 | int acpi_processor_resume(struct acpi_device * device) | 254 | int acpi_processor_resume(struct device *dev) |
255 | { | 255 | { |
256 | if (acpi_idle_suspend == 0) | 256 | if (acpi_idle_suspend == 0) |
257 | return 0; | 257 | return 0; |