<div dir="auto"><div><br><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Patrick Delaunay <<a href="mailto:patrick.delaunay@st.com">patrick.delaunay@st.com</a>> schrieb am Di., 12. Nov. 2019, 10:42:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Add stub for clk_disable_bulk() when CONFIG_CLK is desactivated.<br>
<br>
That avoid compilation issue (undefined reference to<br>
`clk_disable_bulk') for code:<br>
<br>
clk_disable_bulk(&priv->clks);<br>
clk_release_bulk(&priv->clks);<br>
<br>
Signed-off-by: Patrick Delaunay <<a href="mailto:patrick.delaunay@st.com" target="_blank" rel="noreferrer">patrick.delaunay@st.com</a>><br>
---<br>
<br>
Changes in v3:<br>
- Add stub for clk_disable_bulk<br>
<br>
Changes in v2: None<br>
<br>
include/clk.h | 4 ++++<br>
1 file changed, 4 insertions(+)<br>
<br>
diff --git a/include/clk.h b/include/clk.h<br>
index a5ee53d94a..6f0b0fe4bc 100644<br>
--- a/include/clk.h<br>
+++ b/include/clk.h<br>
@@ -379,7 +379,11 @@ int clk_disable(struct clk *clk);<br>
* by clk_get_bulk().<br>
* @return zero on success, or -ve error code.<br>
*/<br>
+ #if CONFIG_IS_ENABLED(CLK)<br>
int clk_disable_bulk(struct clk_bulk *bulk);<br>
+#else<br>
+inline int clk_disable_bulk(struct clk_bulk *bulk) { return 0; }<br>
+#endif<br></blockquote></div></div><div dir="auto"><br></div><div dir="auto">Doing this inline at this place seems quite different than what is done for the other functions?</div><div dir="auto"><br></div><div dir="auto">Regards,</div><div dir="auto">Simon</div><div dir="auto"><br></div><div dir="auto"><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
/**<br>
* clk_is_match - check if two clk's point to the same hardware clock<br>
-- <br>
2.17.1<br>
<br>
</blockquote></div></div></div>