1 From aeb5a729386db036163fa21a8f5e5e1f9a735ebf 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 23/70] MIPS: add clkdev.h
6 For clkdev to work on MIPS we need this file
8 include/linux/clkdev.h:#include <asm/clkdev.h>
10 Signed-off-by: John Crispin <blogic@openwrt.org>
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
16 diff --git a/arch/mips/include/asm/clkdev.h b/arch/mips/include/asm/clkdev.h
18 index 0000000..2624754
20 +++ b/arch/mips/include/asm/clkdev.h
23 + * based on arch/arm/include/asm/clkdev.h
25 + * Copyright (C) 2008 Russell King.
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.
31 + * Helper for the clk API to assist looking up a struct clk.
33 +#ifndef __ASM_CLKDEV_H
34 +#define __ASM_CLKDEV_H
36 +#include <linux/slab.h>
38 +#define __clk_get(clk) ({ 1; })
39 +#define __clk_put(clk) do { } while (0)
41 +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
43 + return kzalloc(size, GFP_KERNEL);