1cea4dd99f4c9927127cd8c32eb3417cef0fbefb
[openwrt/svn-archive/archive.git] / target / linux / lantiq / patches-3.3 / 0019-MIPS-add-clkdev.h.patch
1 From 7396c59a2be411a11c640d79417ff257f1b94eff Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Thu, 16 Feb 2012 20:23:36 +0100
4 Subject: [PATCH 19/70] MIPS: add clkdev.h
5
6 For clkdev to work on MIPS we need this file
7
8 include/linux/clkdev.h:#include <asm/clkdev.h>
9
10 Signed-off-by: John Crispin <blogic@openwrt.org>
11 ---
12 arch/mips/include/asm/clkdev.h | 25 +++++++++++++++++++++++++
13 1 files changed, 25 insertions(+), 0 deletions(-)
14 create mode 100644 arch/mips/include/asm/clkdev.h
15
16 diff --git a/arch/mips/include/asm/clkdev.h b/arch/mips/include/asm/clkdev.h
17 new file mode 100644
18 index 0000000..2624754
19 --- /dev/null
20 +++ b/arch/mips/include/asm/clkdev.h
21 @@ -0,0 +1,25 @@
22 +/*
23 + * based on arch/arm/include/asm/clkdev.h
24 + *
25 + * Copyright (C) 2008 Russell King.
26 + *
27 + * This program is free software; you can redistribute it and/or modify
28 + * it under the terms of the GNU General Public License version 2 as
29 + * published by the Free Software Foundation.
30 + *
31 + * Helper for the clk API to assist looking up a struct clk.
32 + */
33 +#ifndef __ASM_CLKDEV_H
34 +#define __ASM_CLKDEV_H
35 +
36 +#include <linux/slab.h>
37 +
38 +#define __clk_get(clk) ({ 1; })
39 +#define __clk_put(clk) do { } while (0)
40 +
41 +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
42 +{
43 + return kzalloc(size, GFP_KERNEL);
44 +}
45 +
46 +#endif
47 --
48 1.7.9.1
49