2 * Copyright (C) 2010 Paul Mundt <lethal@linux-sh.org>
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License version 2 as
6 * published by the Free Software Foundation.
8 * Helper for the clk API to assist looking up a struct clk.
14 #include <linux/bootmem.h>
16 #include <linux/slab.h>
18 #include <asm/clock.h>
20 static inline struct clk_lookup_alloc
*__clkdev_alloc(size_t size
)
22 if (!slab_is_available())
23 return alloc_bootmem_low_pages(size
);
25 return kzalloc(size
, GFP_KERNEL
);
28 #ifndef CONFIG_COMMON_CLK
29 #define __clk_put(clk)
30 #define __clk_get(clk) ({ 1; })
33 #endif /* __CLKDEV_H__ */