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

Commit d3460b2a authored by Thierry Reding's avatar Thierry Reding Committed by Mauro Carvalho Chehab
Browse files

[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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarSylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@osg.samsung.com>
parent de3767aa
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;
@@ -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[];