diff options
author | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-08-24 14:10:41 -0400 |
---|---|---|
committer | Sylwester Nawrocki <s.nawrocki@samsung.com> | 2013-12-04 11:19:44 -0500 |
commit | ac2df527fb407b61f9c812a99035b62a75a77d6d (patch) | |
tree | 87b9b90703c654b5359749bd48eb87bb5dd0b118 /arch/sh/include/asm | |
parent | 3a3d2b0551d79ef476ef57424beeb8f68789fbcd (diff) |
clk: Add common __clk_get(), __clk_put() implementations
This patch adds common __clk_get(), __clk_put() clkdev helpers that
replace their platform specific counterparts when the common clock
API is used.
The owner module pointer field is added to struct clk so a reference
to the clock supplier module can be taken by the clock consumers.
The owner module is assigned while the clock is being registered,
in functions _clk_register() and __clk_register().
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com>
Acked-by: Russell King <rmk+kernel@arm.linux.org.uk>
Diffstat (limited to 'arch/sh/include/asm')
-rw-r--r-- | arch/sh/include/asm/clkdev.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/sh/include/asm/clkdev.h b/arch/sh/include/asm/clkdev.h index 6ba91868201c..c41901465fb0 100644 --- a/arch/sh/include/asm/clkdev.h +++ b/arch/sh/include/asm/clkdev.h | |||
@@ -25,7 +25,9 @@ static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size) | |||
25 | return kzalloc(size, GFP_KERNEL); | 25 | return kzalloc(size, GFP_KERNEL); |
26 | } | 26 | } |
27 | 27 | ||
28 | #ifndef CONFIG_COMMON_CLK | ||
28 | #define __clk_put(clk) | 29 | #define __clk_put(clk) |
29 | #define __clk_get(clk) ({ 1; }) | 30 | #define __clk_get(clk) ({ 1; }) |
31 | #endif | ||
30 | 32 | ||
31 | #endif /* __CLKDEV_H__ */ | 33 | #endif /* __CLKDEV_H__ */ |