Hi Mark, On Mon, 2 Jul 2012 19:04:10 +0100 Mark Brown <broonie@xxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote: > > diff --git a/include/asm-generic/clkdev.h b/include/asm-generic/clkdev.h > new file mode 100644 > index 0000000..c362a9d > --- /dev/null > +++ b/include/asm-generic/clkdev.h > @@ -0,0 +1,26 @@ > +/* > + * include/asm-generic/clkdev.h > + * > + * Based on the ARM clkdev.h: > + * Copyright (C) 2008 Russell King. > + * > + * This program is free software; you can redistribute it and/or modify > + * it under the terms of the GNU General Public License version 2 as > + * published by the Free Software Foundation. > + * > + * Helper for the clk API to assist looking up a struct clk. > + */ > +#ifndef __ASM_CLKDEV_H > +#define __ASM_CLKDEV_H > + > +#include <linux/slab.h> > + > +#define __clk_get(clk) ({ 1; }) > +#define __clk_put(clk) do { } while (0) So why not: struct clk; static inline int __clk_get(struct clk *clk) { return 1; } static inline void __clk_put(struct clk *clk) ( ) -- Cheers, Stephen Rothwell sfr@xxxxxxxxxxxxxxxx
Attachment:
pgpkqm75eVulT.pgp
Description: PGP signature