diff options
| author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2014-01-07 17:08:48 -0500 |
|---|---|---|
| committer | Mauro Carvalho Chehab <m.chehab@samsung.com> | 2014-02-04 02:59:08 -0500 |
| commit | d003a30dd7401f38c876bb97e3e51f4fd9fed15e (patch) | |
| tree | 823b233952fab28d91b91ec34b8690c797e6a4d9 | |
| parent | a27a19d61535ce61a1e2f9274f99316c7532d5ef (diff) | |
[media] exynos4-is: Compile in fimc runtime PM callbacks conditionally
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@samsung.com>
Reviewed-by: Jingoo Han <jg1.han@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
| -rw-r--r-- | 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 dcbea59c8c69..da2fc86cc524 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: | |||
| 1037 | return ret; | 1037 | return ret; |
| 1038 | } | 1038 | } |
| 1039 | 1039 | ||
| 1040 | #ifdef CONFIG_PM_RUNTIME | ||
| 1040 | static int fimc_runtime_resume(struct device *dev) | 1041 | static int fimc_runtime_resume(struct device *dev) |
| 1041 | { | 1042 | { |
| 1042 | struct fimc_dev *fimc = dev_get_drvdata(dev); | 1043 | struct fimc_dev *fimc = dev_get_drvdata(dev); |
| @@ -1069,6 +1070,7 @@ static int fimc_runtime_suspend(struct device *dev) | |||
| 1069 | dbg("fimc%d: state: 0x%lx", fimc->id, fimc->state); | 1070 | dbg("fimc%d: state: 0x%lx", fimc->id, fimc->state); |
| 1070 | return ret; | 1071 | return ret; |
| 1071 | } | 1072 | } |
| 1073 | #endif | ||
| 1072 | 1074 | ||
| 1073 | #ifdef CONFIG_PM_SLEEP | 1075 | #ifdef CONFIG_PM_SLEEP |
| 1074 | static int fimc_resume(struct device *dev) | 1076 | static int fimc_resume(struct device *dev) |
