blob: 4ff334749ed53670d91807992f0691fb8b88b288 [file] [log] [blame]
Mark Browne7a570f2012-09-05 12:04:14 +08001/*
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
Mike Turquetteb52f4912014-09-08 23:11:26 -070018#ifndef CONFIG_COMMON_CLK
Mark Browne7a570f2012-09-05 12:04:14 +080019struct clk;
20
21static inline int __clk_get(struct clk *clk) { return 1; }
22static inline void __clk_put(struct clk *clk) { }
Mike Turquetteb52f4912014-09-08 23:11:26 -070023#endif
Mark Browne7a570f2012-09-05 12:04:14 +080024
25static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
26{
27 return kzalloc(size, GFP_KERNEL);
28}
29
30#endif