提交 656e62dc 编写于 作者: S Sylwester Nawrocki 提交者: Mauro Carvalho Chehab

[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: NSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: NMauro Carvalho Chehab <m.chehab@samsung.com>
上级 d003a30d
...@@ -1588,6 +1588,7 @@ static int fimc_lite_probe(struct platform_device *pdev) ...@@ -1588,6 +1588,7 @@ static int fimc_lite_probe(struct platform_device *pdev)
return ret; return ret;
} }
#ifdef CONFIG_PM_RUNTIME
static int fimc_lite_runtime_resume(struct device *dev) static int fimc_lite_runtime_resume(struct device *dev)
{ {
struct fimc_lite *fimc = dev_get_drvdata(dev); struct fimc_lite *fimc = dev_get_drvdata(dev);
...@@ -1603,6 +1604,7 @@ static int fimc_lite_runtime_suspend(struct device *dev) ...@@ -1603,6 +1604,7 @@ static int fimc_lite_runtime_suspend(struct device *dev)
clk_disable(fimc->clock); clk_disable(fimc->clock);
return 0; return 0;
} }
#endif
#ifdef CONFIG_PM_SLEEP #ifdef CONFIG_PM_SLEEP
static int fimc_lite_resume(struct device *dev) static int fimc_lite_resume(struct device *dev)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册