Skip to content

Commit 7f1dd39

Browse files
Uwe Kleine-Königbebarino
authored andcommitted
clk: Provide !COMMON_CLK dummy for devm_clk_rate_exclusive_get()
To be able to compile drivers using devm_clk_rate_exclusive_get() also on platforms without the common clk framework, add a dummy implementation that does the same as clk_rate_exclusive_get() in that case (i.e. nothing). Reported-by: kernel test robot <[email protected]> Closes: https://lore.kernel.org/oe-kbuild-all/[email protected]/ Fixes: b0cde62 ("clk: Add a devm variant of clk_rate_exclusive_get()") Signed-off-by: Uwe Kleine-König <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Stephen Boyd <[email protected]>
1 parent 4cece76 commit 7f1dd39

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

include/linux/clk.h

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,11 @@ static inline int clk_rate_exclusive_get(struct clk *clk)
286286
return 0;
287287
}
288288

289+
static inline int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)
290+
{
291+
return 0;
292+
}
293+
289294
static inline void clk_rate_exclusive_put(struct clk *clk) {}
290295

291296
#endif

0 commit comments

Comments
 (0)