Skip to content

Commit

Permalink
[media] s5p-fimc: Only build suspend/resume for PM
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Mauro Carvalho Chehab committed Oct 24, 2014
1 parent de3767a commit d3460b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/media/platform/exynos4-is/fimc-core.c
Original file line number Diff line number Diff line change
Expand Up @@ -832,6 +832,7 @@ static int fimc_clk_get(struct fimc_dev *fimc)
return -ENXIO;
}

#if defined(CONFIG_PM_RUNTIME) || defined(CONFIG_PM_SLEEP)
static int fimc_m2m_suspend(struct fimc_dev *fimc)
{
unsigned long flags;
Expand Down Expand Up @@ -870,6 +871,7 @@ static int fimc_m2m_resume(struct fimc_dev *fimc)

return 0;
}
#endif /* CONFIG_PM_RUNTIME || CONFIG_PM_SLEEP */

static const struct of_device_id fimc_of_match[];

Expand Down

0 comments on commit d3460b2

Please sign in to comment.