From mboxrd@z Thu Jan 1 00:00:00 1970 From: jeremy.kerr@canonical.com (Jeremy Kerr) Date: Wed, 23 Feb 2011 10:49:17 +0800 Subject: [PATCH 1/2] Add a common struct clk In-Reply-To: <20110222201725.GF22310@pengutronix.de> References: <1298256658.861611.43913489619.0.gpush@pororo> <1298256658.862188.178150188637.1.gpush@pororo> <20110222201725.GF22310@pengutronix.de> Message-ID: <201102231049.17466.jeremy.kerr@canonical.com> To: linux-arm-kernel@lists.infradead.org List-Id: linux-arm-kernel.lists.infradead.org Hi Uwe, > > +static inline void clk_common_init(struct clk *clk) { } > > + > > +/* > > + * For !CONFIG_USE_COMMON_STRUCT_CLK, we don't enforce any atomicity > > + * requirements for clk_enable/clk_disable, so the prepare and unprepare > > + * functions are no-ops > > + */ > > +int clk_prepare(struct clk *clk) { return 0; } > > +void clk_unprepare(struct clk *clk) { } > > these should be static inline. Otherwise these functions end up in many > files and so provoke a build failure. Ugh, brown paper bag time. Thanks for that, I'll update this patch. Cheers, Jeremy