sprd_serial: compile sprd_suspend and sprd_resume conditionally
authorPaul Bolle <pebolle@tiscali.nl>
Tue, 3 Feb 2015 20:05:50 +0000 (21:05 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 02:13:07 +0000 (03:13 +0100)
commitb51e3f5ad5b2618702d689942dfaf7b15ea5eba4
tree0752c7c0e3d6b79f8f776a2263cf2ee2fccd9604
parentad3d4fdc8ee6d268d90d1a29bccd5318fa071cab
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 <pebolle@tiscali.nl>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/sprd_serial.c