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 /drivers/acpi/fan.c | |
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 'drivers/acpi/fan.c')
-rw-r--r-- | drivers/acpi/fan.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 0f0356ca1a9e..ed1e58dc19d8 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -46,7 +46,7 @@ MODULE_LICENSE("GPL"); | |||
46 | 46 | ||
47 | static int acpi_fan_add(struct acpi_device *device); | 47 | static int acpi_fan_add(struct acpi_device *device); |
48 | static int acpi_fan_remove(struct acpi_device *device, int type); | 48 | static int acpi_fan_remove(struct acpi_device *device, int type); |
49 | static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state); | 49 | static int acpi_fan_suspend(struct acpi_device *device); |
50 | static int acpi_fan_resume(struct acpi_device *device); | 50 | static int acpi_fan_resume(struct acpi_device *device); |
51 | 51 | ||
52 | static const struct acpi_device_id fan_device_ids[] = { | 52 | static const struct acpi_device_id fan_device_ids[] = { |
@@ -183,7 +183,7 @@ static int acpi_fan_remove(struct acpi_device *device, int type) | |||
183 | return 0; | 183 | return 0; |
184 | } | 184 | } |
185 | 185 | ||
186 | static int acpi_fan_suspend(struct acpi_device *device, pm_message_t state) | 186 | static int acpi_fan_suspend(struct acpi_device *device) |
187 | { | 187 | { |
188 | if (!device) | 188 | if (!device) |
189 | return -EINVAL; | 189 | return -EINVAL; |