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