clk: Provide !COMMON_CLK dummy for devm_clk_rate_exclusive_get()
BugLink: https://bugs.launchpad.net/bugs/2075154 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: b0cde62e4c54 ("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> (cherry picked from commit 7f1dd39aedfccf60772328c5b88d56dbd39954c3) [diewald: fixes prerequisite commit for 4268254a3948 i2c: lpi2c: Avoid calling clk_get_rate during transfer] Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com> Signed-off-by: Roxana Nicolescu <roxana.nicolescu@canonical.com>
This commit is contained in:
committed by
Roxana Nicolescu
parent
50ac5940bd
commit
ecbbea846c
@@ -286,6 +286,11 @@ static inline int clk_rate_exclusive_get(struct clk *clk)
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline int devm_clk_rate_exclusive_get(struct device *dev, struct clk *clk)
|
||||
{
|
||||
return 0;
|
||||
}
|
||||
|
||||
static inline void clk_rate_exclusive_put(struct clk *clk) {}
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user