Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 85a82038 authored by Thierry Reding's avatar Thierry Reding Committed by Inki Dae
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Reviewed-by: default avatarAndrzej Hajda <a.hajda@samsung.com>
Signed-off-by: default avatarInki Dae <inki.dae@samsung.com>
parent 641a2fef
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -786,6 +786,7 @@ static int rotator_remove(struct platform_device *pdev)
	return 0;
}

#ifdef CONFIG_PM
static int rotator_clk_crtl(struct rot_context *rot, bool enable)
{
	if (enable) {
@@ -822,7 +823,6 @@ static int rotator_resume(struct device *dev)
}
#endif

#ifdef CONFIG_PM
static int rotator_runtime_suspend(struct device *dev)
{
	struct rot_context *rot = dev_get_drvdata(dev);