On Wednesday, January 08, 2014 7:09 AM, Sylwester Nawrocki wrote: > > Enclose the runtime PM helpers in #ifdef CONFIG_PM_RUNTIME/#endif > to avoid following compile warning when CONFIG_PM_RUNTIME is disabled: > > CC drivers/media/platform/exynos4-is/fimc-core.o > drivers/media/platform/exynos4-is/fimc-core.c:1040:12: warning: ‘fimc_runtime_resume’ defined but not > used > drivers/media/platform/exynos4-is/fimc-core.c:1057:12: warning: ‘fimc_runtime_suspend’ defined but not > used > > Signed-off-by: Sylwester Nawrocki <s.nawrocki@xxxxxxxxxxx> Right, '#ifdef CONFIG_PM_RUNTIME' should be used in order to fix the compile warning. Reviewed-by: Jingoo Han <jg1.han@xxxxxxxxxxx> Best regards, Jingoo Han > --- > drivers/media/platform/exynos4-is/fimc-core.c | 2 ++ > 1 files changed, 2 insertions(+), 0 deletions(-) > > diff --git a/drivers/media/platform/exynos4-is/fimc-core.c b/drivers/media/platform/exynos4-is/fimc- > core.c > index dcbea59..da2fc86 100644 > --- a/drivers/media/platform/exynos4-is/fimc-core.c > +++ b/drivers/media/platform/exynos4-is/fimc-core.c > @@ -1037,6 +1037,7 @@ err_sclk: > return ret; > } > > +#ifdef CONFIG_PM_RUNTIME > static int fimc_runtime_resume(struct device *dev) > { > struct fimc_dev *fimc = dev_get_drvdata(dev); > @@ -1069,6 +1070,7 @@ static int fimc_runtime_suspend(struct device *dev) > dbg("fimc%d: state: 0x%lx", fimc->id, fimc->state); > return ret; > } > +#endif > > #ifdef CONFIG_PM_SLEEP > static int fimc_resume(struct device *dev) > -- > 1.7.4.1 -- To unsubscribe from this list: send the line "unsubscribe linux-samsung-soc" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html