]>
Commit | Line | Data |
---|---|---|
d72fbdf0 RK |
1 | #ifndef __ASM_MACH_CLKDEV_H |
2 | #define __ASM_MACH_CLKDEV_H | |
3 | ||
4 | #include <linux/module.h> | |
9bf5b2ef | 5 | #include <plat/clock.h> |
d72fbdf0 RK |
6 | |
7 | struct clk { | |
8 | unsigned long rate; | |
9bf5b2ef | 9 | const struct clk_ops *ops; |
d72fbdf0 | 10 | struct module *owner; |
39c0cb02 | 11 | const struct icst_params *params; |
d1914c7e | 12 | void __iomem *vcoreg; |
d1914c7e | 13 | void *data; |
d72fbdf0 RK |
14 | }; |
15 | ||
16 | static inline int __clk_get(struct clk *clk) | |
17 | { | |
18 | return try_module_get(clk->owner); | |
19 | } | |
20 | ||
21 | static inline void __clk_put(struct clk *clk) | |
22 | { | |
23 | module_put(clk->owner); | |
24 | } | |
25 | ||
26 | #endif |