diff options
author | Borislav Petkov <bp@suse.de> | 2016-11-26 09:27:06 -0500 |
---|---|---|
committer | Ingo Molnar <mingo@kernel.org> | 2016-11-28 01:46:03 -0500 |
commit | 20ab6677716c7bbdcfd1cdb9aef296a0b3101f73 (patch) | |
tree | 2de08baa01744c905a9a007c81c31ad5f4c6ae7e | |
parent | c4597fd756836a5fb7900f2091797ab564390ad0 (diff) |
x86/platform/olpc: Fix resume handler build warning
Fix:
arch/x86/platform/olpc/olpc-xo15-sci.c:199:12: warning: ‘xo15_sci_resume’
defined but not used [-Wunused-function]
static int xo15_sci_resume(struct device *dev)
^
which I see in randconfig builds here.
Signed-off-by: Borislav Petkov <bp@suse.de>
Cc: Linus Torvalds <torvalds@linux-foundation.org>
Cc: Peter Zijlstra <peterz@infradead.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
Link: http://lkml.kernel.org/r/20161126142706.13602-1-bp@alien8.de
Signed-off-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r-- | arch/x86/platform/olpc/olpc-xo15-sci.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/platform/olpc/olpc-xo15-sci.c b/arch/x86/platform/olpc/olpc-xo15-sci.c index 55130846ac87..c0533fbc39e3 100644 --- a/arch/x86/platform/olpc/olpc-xo15-sci.c +++ b/arch/x86/platform/olpc/olpc-xo15-sci.c | |||
@@ -196,6 +196,7 @@ static int xo15_sci_remove(struct acpi_device *device) | |||
196 | return 0; | 196 | return 0; |
197 | } | 197 | } |
198 | 198 | ||
199 | #ifdef CONFIG_PM_SLEEP | ||
199 | static int xo15_sci_resume(struct device *dev) | 200 | static int xo15_sci_resume(struct device *dev) |
200 | { | 201 | { |
201 | /* Enable all EC events */ | 202 | /* Enable all EC events */ |
@@ -207,6 +208,7 @@ static int xo15_sci_resume(struct device *dev) | |||
207 | 208 | ||
208 | return 0; | 209 | return 0; |
209 | } | 210 | } |
211 | #endif | ||
210 | 212 | ||
211 | static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume); | 213 | static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume); |
212 | 214 | ||