From: Fabio Estevam Date: Wed, 30 Jul 2014 18:34:31 +0000 (-0700) Subject: Input: mcs5000_ts - protect PM functions with CONFIG_PM_SLEEP X-Git-Tag: omap-for-v3.17/fixes-against-rc2~115^2~1^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f1e31b02b95a70c0770bf91ec440ae242432f4b7;p=pandora-kernel.git Input: mcs5000_ts - protect PM functions with CONFIG_PM_SLEEP When a kernel has CONFIG_PM=y and CONFIG_PM_SLEEP=n the following warnings are seen: drivers/input/touchscreen/mcs5000_ts.c:252:12: warning: 'mcs5000_ts_suspend' defined but not used [-Wunused-function] static int mcs5000_ts_suspend(struct device *dev) ^ drivers/input/touchscreen/mcs5000_ts.c:262:12: warning: 'mcs5000_ts_resume' defined but not used [-Wunused-function] static int mcs5000_ts_resume(struct device *dev) Protect the suspend/resume functions with CONFIG_PM_SLEEP in order to fix these build warnings. Signed-off-by: Fabio Estevam Signed-off-by: Dmitry Torokhov --- Reading git-diff-tree failed