diff options
| author | Jingoo Han <jg1.han@samsung.com> | 2013-03-21 22:09:08 -0400 |
|---|---|---|
| committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2013-04-01 10:29:24 -0400 |
| commit | 997230d02cbd7d35f26b70bb67d8b09a58414aae (patch) | |
| tree | 899cab667d80500cee5e5688fc69d977d67fd435 | |
| parent | e47ef0f1affff3e017d0477b283a26beeb45258a (diff) | |
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>
| -rw-r--r-- | drivers/spi/spi-s3c64xx.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/spi/spi-s3c64xx.c b/drivers/spi/spi-s3c64xx.c index a17ca06381ae..682b1e738370 100644 --- a/drivers/spi/spi-s3c64xx.c +++ b/drivers/spi/spi-s3c64xx.c | |||
| @@ -1358,7 +1358,7 @@ static int s3c64xx_spi_remove(struct platform_device *pdev) | |||
| 1358 | return 0; | 1358 | return 0; |
| 1359 | } | 1359 | } |
| 1360 | 1360 | ||
| 1361 | #ifdef CONFIG_PM | 1361 | #ifdef CONFIG_PM_SLEEP |
| 1362 | static int s3c64xx_spi_suspend(struct device *dev) | 1362 | static int s3c64xx_spi_suspend(struct device *dev) |
| 1363 | { | 1363 | { |
| 1364 | struct spi_master *master = dev_get_drvdata(dev); | 1364 | struct spi_master *master = dev_get_drvdata(dev); |
| @@ -1399,7 +1399,7 @@ static int s3c64xx_spi_resume(struct device *dev) | |||
| 1399 | 1399 | ||
| 1400 | return 0; | 1400 | return 0; |
| 1401 | } | 1401 | } |
| 1402 | #endif /* CONFIG_PM */ | 1402 | #endif /* CONFIG_PM_SLEEP */ |
| 1403 | 1403 | ||
| 1404 | #ifdef CONFIG_PM_RUNTIME | 1404 | #ifdef CONFIG_PM_RUNTIME |
| 1405 | static int s3c64xx_spi_runtime_suspend(struct device *dev) | 1405 | static int s3c64xx_spi_runtime_suspend(struct device *dev) |
