Thread (128 messages) 128 messages, 19 authors, 2011-04-20

[PATCH 1/2] Add a common struct clk

From: Jeremy Kerr <hidden>
Date: 2011-02-23 02:49:29
Also in: linux-sh, lkml

Hi Uwe,
quoted
+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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help