blob: ded0209348c7a177c82373674758c6ffe090faed [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Steven Miao96900312012-05-16 17:49:52 +08002#ifndef __ASM_CLKDEV__H_
3#define __ASM_CLKDEV__H_
4
5#include <linux/slab.h>
6
7static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
8{
9 return kzalloc(size, GFP_KERNEL);
10}
11
Sylwester Nawrockiac2df522013-08-24 20:10:41 +020012#ifndef CONFIG_COMMON_CLK
Steven Miao96900312012-05-16 17:49:52 +080013#define __clk_put(clk)
14#define __clk_get(clk) ({ 1; })
Sylwester Nawrockiac2df522013-08-24 20:10:41 +020015#endif
Steven Miao96900312012-05-16 17:49:52 +080016
17#endif