]> git.karo-electronics.de Git - karo-tx-linux.git/blobdiff - drivers/platform/x86/thinkpad_acpi.c
platform / x86 / PM: Fix unused function warnings for CONFIG_PM_SLEEP
[karo-tx-linux.git] / drivers / platform / x86 / thinkpad_acpi.c
index e7f73287636cd9bdabb3f0b32104d4b7257e5e69..f28f36ccdcf480417429286bf1a55015018382c5 100644 (file)
@@ -922,6 +922,7 @@ static struct input_dev *tpacpi_inputdev;
 static struct mutex tpacpi_inputdev_send_mutex;
 static LIST_HEAD(tpacpi_all_drivers);
 
+#ifdef CONFIG_PM_SLEEP
 static int tpacpi_suspend_handler(struct device *dev)
 {
        struct ibm_struct *ibm, *itmp;
@@ -949,6 +950,7 @@ static int tpacpi_resume_handler(struct device *dev)
 
        return 0;
 }
+#endif
 
 static SIMPLE_DEV_PM_OPS(tpacpi_pm,
                         tpacpi_suspend_handler, tpacpi_resume_handler);