Skip to content

Commit d3460b2

Browse files
thierryredingmchehab
authored andcommitted
[media] s5p-fimc: Only build suspend/resume for PM
If power management is disabled these functions become unused, so there is no reason to build them. This fixes a couple of build warnings when PM(_SLEEP,_RUNTIME) is not enabled. Signed-off-by: Thierry Reding <treding@nvidia.com> Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
1 parent de3767a commit d3460b2

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

‎drivers/media/platform/exynos4-is/fimc-core.c‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -832,6 +832,7 @@ static int fimc_clk_get(struct fimc_dev *fimc)
832832
return -ENXIO;
833833
}
834834

835+
#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
835836
static int fimc_m2m_suspend(struct fimc_dev *fimc)
836837
{
837838
unsigned long flags;
@@ -870,6 +871,7 @@ static int fimc_m2m_resume(struct fimc_dev *fimc)
870871

871872
return 0;
872873
}
874+
#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */
873875

874876
static const struct of_device_id fimc_of_match[];
875877

0 commit comments

Comments
 (0)