diff options
-rw-r--r-- | drivers/platform/x86/acer-wmi.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/platform/x86/acer-wmi.c b/drivers/platform/x86/acer-wmi.c index 48aae3ae82a1..0eecf9245d8c 100644 --- a/drivers/platform/x86/acer-wmi.c +++ b/drivers/platform/x86/acer-wmi.c | |||
@@ -2043,6 +2043,7 @@ static int acer_platform_remove(struct platform_device *device) | |||
2043 | return 0; | 2043 | return 0; |
2044 | } | 2044 | } |
2045 | 2045 | ||
2046 | #ifdef CONFIG_PM_SLEEP | ||
2046 | static int acer_suspend(struct device *dev) | 2047 | static int acer_suspend(struct device *dev) |
2047 | { | 2048 | { |
2048 | u32 value; | 2049 | u32 value; |
@@ -2083,6 +2084,10 @@ static int acer_resume(struct device *dev) | |||
2083 | 2084 | ||
2084 | return 0; | 2085 | return 0; |
2085 | } | 2086 | } |
2087 | #else | ||
2088 | #define acer_suspend NULL | ||
2089 | #define acer_resume NULL | ||
2090 | #endif | ||
2086 | 2091 | ||
2087 | static SIMPLE_DEV_PM_OPS(acer_pm, acer_suspend, acer_resume); | 2092 | static SIMPLE_DEV_PM_OPS(acer_pm, acer_suspend, acer_resume); |
2088 | 2093 | ||