Merge branch 'for-linus-4.2' of git://git.kernel.org/pub/scm/linux/kernel/git/mason...
[firefly-linux-kernel-4.4.55.git] / drivers / input / touchscreen / ipaq-micro-ts.c
index 62c8976e616fb74079378298c2d6da94c9b1a507..33c134820ef94411657929eb4d2bfbfc2b6f93d9 100644 (file)
@@ -122,8 +122,7 @@ static int micro_ts_probe(struct platform_device *pdev)
        return 0;
 }
 
-#ifdef CONFIG_PM_SLEEP
-static int micro_ts_suspend(struct device *dev)
+static int __maybe_unused micro_ts_suspend(struct device *dev)
 {
        struct touchscreen_data *ts = dev_get_drvdata(dev);
 
@@ -132,7 +131,7 @@ static int micro_ts_suspend(struct device *dev)
        return 0;
 }
 
-static int micro_ts_resume(struct device *dev)
+static int __maybe_unused micro_ts_resume(struct device *dev)
 {
        struct touchscreen_data *ts = dev_get_drvdata(dev);
        struct input_dev *input = ts->input;
@@ -146,7 +145,6 @@ static int micro_ts_resume(struct device *dev)
 
        return 0;
 }
-#endif
 
 static const struct dev_pm_ops micro_ts_dev_pm_ops = {
        SET_SYSTEM_SLEEP_PM_OPS(micro_ts_suspend, micro_ts_resume)