Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame^] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Steven Miao | 9690031 | 2012-05-16 17:49:52 +0800 | [diff] [blame] | 2 | #ifndef __ASM_CLKDEV__H_ |
| 3 | #define __ASM_CLKDEV__H_ |
| 4 | |
| 5 | #include <linux/slab.h> |
| 6 | |
| 7 | static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size) |
| 8 | { |
| 9 | return kzalloc(size, GFP_KERNEL); |
| 10 | } |
| 11 | |
Sylwester Nawrocki | ac2df52 | 2013-08-24 20:10:41 +0200 | [diff] [blame] | 12 | #ifndef CONFIG_COMMON_CLK |
Steven Miao | 9690031 | 2012-05-16 17:49:52 +0800 | [diff] [blame] | 13 | #define __clk_put(clk) |
| 14 | #define __clk_get(clk) ({ 1; }) |
Sylwester Nawrocki | ac2df52 | 2013-08-24 20:10:41 +0200 | [diff] [blame] | 15 | #endif |
Steven Miao | 9690031 | 2012-05-16 17:49:52 +0800 | [diff] [blame] | 16 | |
| 17 | #endif |