diff options
Diffstat (limited to 'include/asm-generic/clkdev.h')
| -rw-r--r-- | include/asm-generic/clkdev.h | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/include/asm-generic/clkdev.h b/include/asm-generic/clkdev.h new file mode 100644 index 000000000000..90a32a61dd21 --- /dev/null +++ b/include/asm-generic/clkdev.h | |||
| @@ -0,0 +1,28 @@ | |||
| 1 | /* | ||
| 2 | * include/asm-generic/clkdev.h | ||
| 3 | * | ||
| 4 | * Based on the ARM clkdev.h: | ||
| 5 | * Copyright (C) 2008 Russell King. | ||
| 6 | * | ||
| 7 | * This program is free software; you can redistribute it and/or modify | ||
| 8 | * it under the terms of the GNU General Public License version 2 as | ||
| 9 | * published by the Free Software Foundation. | ||
| 10 | * | ||
| 11 | * Helper for the clk API to assist looking up a struct clk. | ||
| 12 | */ | ||
| 13 | #ifndef __ASM_CLKDEV_H | ||
| 14 | #define __ASM_CLKDEV_H | ||
| 15 | |||
| 16 | #include <linux/slab.h> | ||
| 17 | |||
| 18 | struct clk; | ||
| 19 | |||
| 20 | static inline int __clk_get(struct clk *clk) { return 1; } | ||
| 21 | static inline void __clk_put(struct clk *clk) { } | ||
| 22 | |||
| 23 | static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size) | ||
| 24 | { | ||
| 25 | return kzalloc(size, GFP_KERNEL); | ||
| 26 | } | ||
| 27 | |||
| 28 | #endif | ||
