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
17 +++ b/arch/mips/include/asm/clkdev.h
20 + * based on arch/arm/include/asm/clkdev.h
22 + * Copyright (C) 2008 Russell King.
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.
28 + * Helper for the clk API to assist looking up a struct clk.
30 +#ifndef __ASM_CLKDEV_H
31 +#define __ASM_CLKDEV_H
33 +#include <linux/slab.h>
35 +#define __clk_get(clk) ({ 1; })
36 +#define __clk_put(clk) do { } while (0)
38 +static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)
40 + return kzalloc(size, GFP_KERNEL);