]> git.baikalelectronics.ru Git - kernel.git/commit
acer-wmi: Hide acer_{suspend,resume} for !CONFIG_PM_SLEEP
authorMathias Krause <minipli@googlemail.com>
Wed, 16 Jul 2014 17:43:06 +0000 (19:43 +0200)
committerMatthew Garrett <matthew.garrett@nebula.com>
Sat, 16 Aug 2014 08:23:51 +0000 (01:23 -0700)
commitba3415563252724d95d4ac8874e653795a8daa88
treea6fa8a6d21aaeda6b3731461f003c22a37ac7e08
parent231fa2f0c31b39567a88bb0702d57024f44390d7
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: Mathias Krause <minipli@googlemail.com>
Cc: "Lee, Chun-Yi" <jlee@suse.com>
Signed-off-by: Matthew Garrett <matthew.garrett@nebula.com>
drivers/platform/x86/acer-wmi.c