]> git.kernelconcepts.de Git - karo-tx-linux.git/commitdiff
x86/platform/olpc: Fix resume handler build warning
authorBorislav Petkov <bp@suse.de>
Sat, 26 Nov 2016 14:27:06 +0000 (15:27 +0100)
committerIngo Molnar <mingo@kernel.org>
Mon, 28 Nov 2016 06:46:03 +0000 (07:46 +0100)
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>
arch/x86/platform/olpc/olpc-xo15-sci.c

index 55130846ac87afe11d50e7bdbcf77b77827838b0..c0533fbc39e3a4e9f56575dffe6d0de3a4082706 100644 (file)
@@ -196,6 +196,7 @@ static int xo15_sci_remove(struct acpi_device *device)
        return 0;
 }
 
+#ifdef CONFIG_PM_SLEEP
 static int xo15_sci_resume(struct device *dev)
 {
        /* Enable all EC events */
@@ -207,6 +208,7 @@ static int xo15_sci_resume(struct device *dev)
 
        return 0;
 }
+#endif
 
 static SIMPLE_DEV_PM_OPS(xo15_sci_pm, NULL, xo15_sci_resume);