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 <lkp@intel.com> Closes: https://lore.kernel.org/oe-kbuild-all/202403270305.ydvX9xq1-lkp@intel.com/ Fixes: b0cde62 ("clk: Add a devm variant of clk_rate_exclusive_get()") Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Link: https://lore.kernel.org/r/20240327073310.520950-2-u.kleine-koenig@pengutronix.de Signed-off-by: Stephen Boyd <sboyd@kernel.org>
1 parent 4cece76 commit 7f1dd39

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

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)