Commit 80f65558 authored by Mathias Krause's avatar Mathias Krause Committed by Matthew Garrett
Browse files

acer-wmi: Hide acer_{suspend,resume} for !CONFIG_PM_SLEEP

Encapsulate acer_suspend() and acer_resume with #ifdef CONFIG_PM_SLEEP
to get rid of the following warnings:

  ../acer-wmi.c:2046:12: warning: ‘acer_suspend’ defined but not used [-Wunused-function]
  ../acer-wmi.c:2068:12: warning: ‘acer_resume’ defined but not used [-Wunused-function]

Signed-off-by: default avatarMathias Krause <>
Cc: "Lee, Chun-Yi" <>
Signed-off-by: default avatarMatthew Garrett <>
parent 87e44849
......@@ -2043,6 +2043,7 @@ static int acer_platform_remove(struct platform_device *device)
return 0;
static int acer_suspend(struct device *dev)
u32 value;
......@@ -2083,6 +2084,10 @@ static int acer_resume(struct device *dev)
return 0;
#define acer_suspend NULL
#define acer_resume NULL
static SIMPLE_DEV_PM_OPS(acer_pm, acer_suspend, acer_resume);
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment