aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/platform/exynos4-is
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-01-16 09:49:28 -0500
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-02-04 02:59:22 -0500
commit656e62dc84a38fa847d9501636acb098a32d6f89 (patch)
treed351495b49caf995bd86a5e8daf3c77d4d36b0b7 /drivers/media/platform/exynos4-is
parentd003a30dd7401f38c876bb97e3e51f4fd9fed15e (diff)
[media] exynos4-is: Compile in fimc-lite runtime PM callbacks conditionally
Enclose the runtime PM helpers in #ifdef CONFIG_PM_RUNTIME/#endif to avoid following compile warning when CONFIG_PM_RUNTIME is disabled: CC drivers/media/platform/exynos4-is/fimc-lite.o drivers/media/platform/exynos4-is/fimc-lite.c:1591:12: warning: ‘fimc_lite_runtime_resume’ defined but not used [-Wunused-function] drivers/media/platform/exynos4-is/fimc-lite.c:1599:12: warning: ‘fimc_lite_runtime_suspend’ defined but not used [-Wunused-function] Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/exynos4-is')
-rw-r--r--drivers/media/platform/exynos4-is/fimc-lite.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/platform/exynos4-is/fimc-lite.c b/drivers/media/platform/exynos4-is/fimc-lite.c
index 5213ff03d28a..779ec3cd259d 100644
--- a/drivers/media/platform/exynos4-is/fimc-lite.c
+++ b/drivers/media/platform/exynos4-is/fimc-lite.c
@@ -1588,6 +1588,7 @@ err_clk_put:
1588 return ret; 1588 return ret;
1589} 1589}
1590 1590
1591#ifdef CONFIG_PM_RUNTIME
1591static int fimc_lite_runtime_resume(struct device *dev) 1592static int fimc_lite_runtime_resume(struct device *dev)
1592{ 1593{
1593 struct fimc_lite *fimc = dev_get_drvdata(dev); 1594 struct fimc_lite *fimc = dev_get_drvdata(dev);
@@ -1603,6 +1604,7 @@ static int fimc_lite_runtime_suspend(struct device *dev)
1603 clk_disable(fimc->clock); 1604 clk_disable(fimc->clock);
1604 return 0; 1605 return 0;
1605} 1606}
1607#endif
1606 1608
1607#ifdef CONFIG_PM_SLEEP 1609#ifdef CONFIG_PM_SLEEP
1608static int fimc_lite_resume(struct device *dev) 1610static int fimc_lite_resume(struct device *dev)