/*1* Copyright (C) 2010 Paul Mundt <[email protected]>2*3* This program is free software; you can redistribute it and/or modify4* it under the terms of the GNU General Public License version 2 as5* published by the Free Software Foundation.6*7* Helper for the clk API to assist looking up a struct clk.8*/910#ifndef __CLKDEV__H_11#define __CLKDEV__H_1213#include <linux/bootmem.h>14#include <linux/mm.h>15#include <linux/slab.h>1617#include <asm/clock.h>1819static inline struct clk_lookup_alloc *__clkdev_alloc(size_t size)20{21if (!slab_is_available())22return alloc_bootmem_low_pages(size);23else24return kzalloc(size, GFP_KERNEL);25}2627#define __clk_put(clk)28#define __clk_get(clk) ({ 1; })2930#endif /* __CLKDEV_H__ */313233