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 00000000..bfe07679 --- /dev/null +++ b/arch/arm/mach-integrator/include/mach/clkdev.h @@ -0,0 +1,26 @@ +#ifndef __ASM_MACH_CLKDEV_H +#define __ASM_MACH_CLKDEV_H + +#include <linux/module.h> +#include <plat/clock.h> + +struct clk { + unsigned long rate; + const struct clk_ops *ops; + struct module *owner; + const struct icst_params *params; + void __iomem *vcoreg; + void *data; +}; + +static inline int __clk_get(struct clk *clk) +{ + return try_module_get(clk->owner); +} + +static inline void __clk_put(struct clk *clk) +{ + module_put(clk->owner); +} + +#endif |