diff options
author | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-17 08:48:25 -0400 |
---|---|---|
committer | Rafael J. Wysocki <rafael.j.wysocki@intel.com> | 2014-03-17 08:48:25 -0400 |
commit | c730d30c313a24d9f8829cd2a4047c3eb8b89fec (patch) | |
tree | ee8aeb498a64bd20488960cb380733f31c08ec38 | |
parent | 2eb060975df2aaca635801dcfb99eaa45ede98fe (diff) | |
parent | b9b8515f34fa182e26ee934c3a83f24e2d8bd846 (diff) |
Merge branch 'acpi-fan'
* acpi-fan:
ACPI / fan: do nothing in suspend and poweroff callback
-rw-r--r-- | drivers/acpi/fan.c | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/drivers/acpi/fan.c b/drivers/acpi/fan.c index 09e423f3d8ad..8acf53e62966 100644 --- a/drivers/acpi/fan.c +++ b/drivers/acpi/fan.c | |||
@@ -55,11 +55,16 @@ MODULE_DEVICE_TABLE(acpi, fan_device_ids); | |||
55 | #ifdef CONFIG_PM_SLEEP | 55 | #ifdef CONFIG_PM_SLEEP |
56 | static int acpi_fan_suspend(struct device *dev); | 56 | static int acpi_fan_suspend(struct device *dev); |
57 | static int acpi_fan_resume(struct device *dev); | 57 | static int acpi_fan_resume(struct device *dev); |
58 | static struct dev_pm_ops acpi_fan_pm = { | ||
59 | .resume = acpi_fan_resume, | ||
60 | .freeze = acpi_fan_suspend, | ||
61 | .thaw = acpi_fan_resume, | ||
62 | .restore = acpi_fan_resume, | ||
63 | }; | ||
64 | #define FAN_PM_OPS_PTR (&acpi_fan_pm) | ||
58 | #else | 65 | #else |
59 | #define acpi_fan_suspend NULL | 66 | #define FAN_PM_OPS_PTR NULL |
60 | #define acpi_fan_resume NULL | ||
61 | #endif | 67 | #endif |
62 | static SIMPLE_DEV_PM_OPS(acpi_fan_pm, acpi_fan_suspend, acpi_fan_resume); | ||
63 | 68 | ||
64 | static struct acpi_driver acpi_fan_driver = { | 69 | static struct acpi_driver acpi_fan_driver = { |
65 | .name = "fan", | 70 | .name = "fan", |
@@ -69,7 +74,7 @@ static struct acpi_driver acpi_fan_driver = { | |||
69 | .add = acpi_fan_add, | 74 | .add = acpi_fan_add, |
70 | .remove = acpi_fan_remove, | 75 | .remove = acpi_fan_remove, |
71 | }, | 76 | }, |
72 | .drv.pm = &acpi_fan_pm, | 77 | .drv.pm = FAN_PM_OPS_PTR, |
73 | }; | 78 | }; |
74 | 79 | ||
75 | /* thermal cooling device callbacks */ | 80 | /* thermal cooling device callbacks */ |