diff options
Diffstat (limited to 'arch/arm/include/asm/clkdev.h')
| -rw-r--r-- | arch/arm/include/asm/clkdev.h | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/arch/arm/include/asm/clkdev.h b/arch/arm/include/asm/clkdev.h index b6ec7c627b3..4e8a4b27d7c 100644 --- a/arch/arm/include/asm/clkdev.h +++ b/arch/arm/include/asm/clkdev.h @@ -12,19 +12,20 @@ #ifndef __ASM_CLKDEV_H #define __ASM_CLKDEV_H -struct clk; +#include <linux/slab.h> -struct clk_lookup { - struct list_head node; - const char *dev_id; - const char *con_id; - struct clk *clk; -}; - -struct clk_lookup *clkdev_alloc(struct clk *clk, const char *con_id, - const char *dev_fmt, ...); +#ifndef CONFIG_COMMON_CLK +#ifdef CONFIG_HAVE_MACH_CLKDEV +#include <mach/clkdev.h> +#else +#define __clk_get(clk) ({ 1; }) +#define __clk_put(clk) do { } while (0) +#endif +#endif -void clkdev_add(struct clk_lookup *cl); -void clkdev_drop(struct clk_lookup *cl); +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size) +{ + return kzalloc(size, GFP_KERNEL); +} #endif |
