clkdev.h 442 B

123456789101112131415161718192021222324252627
  1. #ifndef __ASM_MACH_CLKDEV_H
  2. #define __ASM_MACH_CLKDEV_H
  3. #include <linux/module.h>
  4. #include <plat/clock.h>
  5. struct clk {
  6. unsigned long rate;
  7. const struct clk_ops *ops;
  8. struct module *owner;
  9. const struct icst_params *params;
  10. void __iomem *vcoreg;
  11. void *data;
  12. };
  13. static inline int __clk_get(struct clk *clk)
  14. {
  15. return try_module_get(clk->owner);
  16. }
  17. static inline void __clk_put(struct clk *clk)
  18. {
  19. module_put(clk->owner);
  20. }
  21. #endif