aboutsummaryrefslogtreecommitdiff
path: root/arch/arm/mach-integrator/include/mach/clkdev.h
blob: 9293e410832a76f52db88d59486f658f194adad8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#ifndef __ASM_MACH_CLKDEV_H
#define __ASM_MACH_CLKDEV_H

#include <linux/module.h>
#include <asm/hardware/icst525.h>

struct clk {
	unsigned long		rate;
	struct module		*owner;
	const struct icst525_params *params;
	void			*data;
	void			(*setvco)(struct clk *, struct icst525_vco vco);
};

static inline int __clk_get(struct clk *clk)
{
	return try_module_get(clk->owner);
}

static inline void __clk_put(struct clk *clk)
{
	module_put(clk->owner);
}

#endif