From: Paul Bolle Date: Tue, 3 Feb 2015 20:05:50 +0000 (+0100) Subject: sprd_serial: compile sprd_suspend and sprd_resume conditionally X-Git-Tag: omap-for-v4.2/o2_dc~64^2~77^2~37 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b51e3f5ad5b2618702d689942dfaf7b15ea5eba4;p=pandora-kernel.git sprd_serial: compile sprd_suspend and sprd_resume conditionally Building sprd_serial.o when CONFIG_PM_SLEEP is not defined triggers these warnings: drivers/tty/serial/sprd_serial.c:755:12: warning: ‘sprd_suspend’ defined but not used [-Wunused-function] static int sprd_suspend(struct device *dev) ^ drivers/tty/serial/sprd_serial.c:764:12: warning: ‘sprd_resume’ defined but not used [-Wunused-function] static int sprd_resume(struct device *dev) ^ Let's compile these functions only when CONFIG_PM_SLEEP is defined. Signed-off-by: Paul Bolle Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed