summaryrefslogtreecommitdiff
path: root/drivers/media/platform/omap3isp/isp.h
diff options
context:
space:
mode:
authorSylwester Nawrocki <s.nawrocki@samsung.com>2013-12-04 21:12:03 +0400
committerMauro Carvalho Chehab <m.chehab@samsung.com>2013-12-18 12:24:13 +0400
commitf8e2ff262142ba79d1d9f601684a5b9e2f75f397 (patch)
tree2eb80c9d60016195b742308fc58b77ca9725628f /drivers/media/platform/omap3isp/isp.h
parent088f8300c99e798637012195682d40dd1070bb82 (diff)
downloadlinux-f8e2ff262142ba79d1d9f601684a5b9e2f75f397.tar.xz
[media] omap3isp: Modify clocks registration to avoid circular references
The clock core code is going to be modified so clk_get() takes reference on the clock provider module. Until the potential circular reference issue is properly addressed, we pass NULL as the first argument to clk_register(), in order to disallow sub-devices taking a reference on the ISP module back trough clk_get(). This should prevent locking the modules in memory. Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> Acked-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
Diffstat (limited to 'drivers/media/platform/omap3isp/isp.h')
-rw-r--r--drivers/media/platform/omap3isp/isp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/platform/omap3isp/isp.h b/drivers/media/platform/omap3isp/isp.h
index ce65d3ae1aa7..d1e857e41731 100644
--- a/drivers/media/platform/omap3isp/isp.h
+++ b/drivers/media/platform/omap3isp/isp.h
@@ -135,6 +135,7 @@ struct isp_xclk {
struct isp_device *isp;
struct clk_hw hw;
struct clk_lookup *lookup;
+ struct clk *clk;
enum isp_xclk_id id;
spinlock_t lock; /* Protects enabled and divider */