arm: KVM: Add Virtual Abort injection helper
[linux-2.6/btrfs-unstable.git] / include / asm-generic / clkdev.h
blob4ff334749ed53670d91807992f0691fb8b88b288
1 /*
2 * include/asm-generic/clkdev.h
4 * Based on the ARM clkdev.h:
5 * Copyright (C) 2008 Russell King.
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.
11 * Helper for the clk API to assist looking up a struct clk.
13 #ifndef __ASM_CLKDEV_H
14 #define __ASM_CLKDEV_H
16 #include <linux/slab.h>
18 #ifndef CONFIG_COMMON_CLK
19 struct clk;
21 static inline int __clk_get(struct clk *clk) { return 1; }
22 static inline void __clk_put(struct clk *clk) { }
23 #endif
25 static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
27 return kzalloc(size, GFP_KERNEL);
30 #endif