]> git.openfabrics.org - ~shefty/rdma-dev.git/commit
spi/s3c64xx: add CONFIG_PM_SLEEP to suspend/resume functions
authorJingoo Han <jg1.han@samsung.com>
Fri, 22 Mar 2013 02:09:08 +0000 (02:09 +0000)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 1 Apr 2013 14:29:24 +0000 (15:29 +0100)
commit997230d02cbd7d35f26b70bb67d8b09a58414aae
tree899cab667d80500cee5e5688fc69d977d67fd435
parente47ef0f1affff3e017d0477b283a26beeb45258a
spi/s3c64xx: add CONFIG_PM_SLEEP to suspend/resume functions

Add CONFIG_PM_SLEEP to suspend/resume functions to fix the following
build warning when CONFIG_PM_SLEEP is not selected. This is because
sleep PM callbacks defined by SET_SYSTEM_SLEEP_PM_OPS are only used
when the CONFIG_PM_SLEEP is enabled.

drivers/spi/spi-s3c64xx.c:1362:12: warning: 's3c64xx_spi_suspend' defined but not used [-Wunused-function]
drivers/spi/spi-s3c64xx.c:1381:12: warning: 's3c64xx_spi_resume' defined but not used [-Wunused-function]

Signed-off-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/spi/spi-s3c64xx.c