diff options
Diffstat (limited to 'arch/arm/mach-integrator/include/mach/clkdev.h')
-rw-r--r-- | arch/arm/mach-integrator/include/mach/clkdev.h | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/arch/arm/mach-integrator/include/mach/clkdev.h b/arch/arm/mach-integrator/include/mach/clkdev.h new file mode 100644 index 00000000000..bfe07679fae --- /dev/null +++ b/arch/arm/mach-integrator/include/mach/clkdev.h | |||
@@ -0,0 +1,26 @@ | |||
1 | #ifndef __ASM_MACH_CLKDEV_H | ||
2 | #define __ASM_MACH_CLKDEV_H | ||
3 | |||
4 | #include <linux/module.h> | ||
5 | #include <plat/clock.h> | ||
6 | |||
7 | struct clk { | ||
8 | unsigned long rate; | ||
9 | const struct clk_ops *ops; | ||
10 | struct module *owner; | ||
11 | const struct icst_params *params; | ||
12 | void __iomem *vcoreg; | ||
13 | void *data; | ||
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 | ||