aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2014-04-15 13:34:29 -0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2014-05-23 14:49:39 -0400
commitf486e7c3cb9849b6a661931fa8c51a43d477046b (patch)
treeaee1868b53147e0217ab18c0e8411732898e1575
parent3e594ce7ea98ed4f4a52333e968ff7eca135737a (diff)
[media] exynos4-is: Fix compilation for !CONFIG_COMMON_CLK
CONFIG_COMMON_CLK is not enabled on S5PV210 platform, so include some clk API data structures conditionally to avoid compilation errors. These #ifdefs will be removed for next kernel release, when the S5PV210 platform moves to DT and the common clk API. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Acked-by: Kyungmin Park <kyungmin.park@samsung.com> Cc: stable@vger.kernel.org # for 3.15 Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
-rw-r--r--drivers/media/platform/exynos4-is/media-dev.c2
-rw-r--r--drivers/media/platform/exynos4-is/media-dev.h4
2 files changed, 5 insertions, 1 deletions
diff --git a/drivers/media/platform/exynos4-is/media-dev.c b/drivers/media/platform/exynos4-is/media-dev.c
index e62211a80f0e..6e2d6042ade6 100644
--- a/drivers/media/platform/exynos4-is/media-dev.c
+++ b/drivers/media/platform/exynos4-is/media-dev.c
@@ -1520,7 +1520,7 @@ err:
1520} 1520}
1521#else 1521#else
1522#define fimc_md_register_clk_provider(fmd) (0) 1522#define fimc_md_register_clk_provider(fmd) (0)
1523#define fimc_md_unregister_clk_provider(fmd) (0) 1523#define fimc_md_unregister_clk_provider(fmd)
1524#endif 1524#endif
1525 1525
1526static int subdev_notifier_bound(struct v4l2_async_notifier *notifier, 1526static int subdev_notifier_bound(struct v4l2_async_notifier *notifier,
diff --git a/drivers/media/platform/exynos4-is/media-dev.h b/drivers/media/platform/exynos4-is/media-dev.h
index ee1e2519f728..58c49456b13f 100644
--- a/drivers/media/platform/exynos4-is/media-dev.h
+++ b/drivers/media/platform/exynos4-is/media-dev.h
@@ -94,7 +94,9 @@ struct fimc_sensor_info {
94}; 94};
95 95
96struct cam_clk { 96struct cam_clk {
97#ifdef CONFIG_COMMON_CLK
97 struct clk_hw hw; 98 struct clk_hw hw;
99#endif
98 struct fimc_md *fmd; 100 struct fimc_md *fmd;
99}; 101};
100#define to_cam_clk(_hw) container_of(_hw, struct cam_clk, hw) 102#define to_cam_clk(_hw) container_of(_hw, struct cam_clk, hw)
@@ -142,7 +144,9 @@ struct fimc_md {
142 144
143 struct cam_clk_provider { 145 struct cam_clk_provider {
144 struct clk *clks[FIMC_MAX_CAMCLKS]; 146 struct clk *clks[FIMC_MAX_CAMCLKS];
147#ifdef CONFIG_COMMON_CLK
145 struct clk_onecell_data clk_data; 148 struct clk_onecell_data clk_data;
149#endif
146 struct device_node *of_node; 150 struct device_node *of_node;
147 struct cam_clk camclk[FIMC_MAX_CAMCLKS]; 151 struct cam_clk camclk[FIMC_MAX_CAMCLKS];
148 int num_clocks; 152 int num_clocks;