[lantiq] adds zyxel p2601hnfx support
[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 --- /dev/null
17 +++ b/arch/mips/include/asm/clkdev.h
18 @@ -0,0 +1,25 @@
19 +/*
20 + * based on arch/arm/include/asm/clkdev.h
21 + *
22 + * Copyright (C) 2008 Russell King.
23 + *
24 + * This program is free software; you can redistribute it and/or modify
25 + * it under the terms of the GNU General Public License version 2 as
26 + * published by the Free Software Foundation.
27 + *
28 + * Helper for the clk API to assist looking up a struct clk.
29 + */
30 +#ifndef __ASM_CLKDEV_H
31 +#define __ASM_CLKDEV_H
32 +
33 +#include <linux/slab.h>
34 +
35 +#define __clk_get(clk) ({ 1; })
36 +#define __clk_put(clk) do { } while (0)
37 +
38 +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
39 +{
40 + return kzalloc(size, GFP_KERNEL);
41 +}
42 +
43 +#endif