提交 85a82038 编写于 作者: T Thierry Reding 提交者: Inki Dae

drm/exynos: rotator: Clock control is unused if !PM

Protect the rotator_clk_crtl() function with an #ifdef CONFIG_PM guard
to avoid "defined but not used" warnings.
Signed-off-by: NThierry Reding <treding@nvidia.com>
Reviewed-by: NAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: NInki Dae <inki.dae@samsung.com>
上级 641a2fef
无相关合并请求
...@@ -786,6 +786,7 @@ static int rotator_remove(struct platform_device *pdev) ...@@ -786,6 +786,7 @@ static int rotator_remove(struct platform_device *pdev)
return 0; return 0;
} }
#ifdef CONFIG_PM
static int rotator_clk_crtl(struct rot_context *rot, bool enable) static int rotator_clk_crtl(struct rot_context *rot, bool enable)
{ {
if (enable) { if (enable) {
...@@ -822,7 +823,6 @@ static int rotator_resume(struct device *dev) ...@@ -822,7 +823,6 @@ static int rotator_resume(struct device *dev)
} }
#endif #endif
#ifdef CONFIG_PM
static int rotator_runtime_suspend(struct device *dev) static int rotator_runtime_suspend(struct device *dev)
{ {
struct rot_context *rot = dev_get_drvdata(dev); struct rot_context *rot = dev_get_drvdata(dev);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册
反馈
建议
客服 返回
顶部