Skip to content

Commit 20ab667

Browse files
suryasaimadhuingomolnar
authored andcommitted
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>
1 parent c4597fd commit 20ab667

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

arch/x86/platform/olpc/olpc-xo15-sci.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -196,6 +196,7 @@ static int xo15_sci_remove(struct acpi_device *device)
196196
return 0;
197197
}
198198

199+
#ifdef CONFIG_PM_SLEEP
199200
static int xo15_sci_resume(struct device *dev)
200201
{
201202
/* Enable all EC events */
@@ -207,6 +208,7 @@ static int xo15_sci_resume(struct device *dev)
207208

208209
return 0;
209210
}
211+
#endif
210212

211213
static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume);
212214

0 commit comments

Comments
 (0)