summaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2024-01-18 09:45:14 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2024-01-19 07:43:46 +0100
commitef35406bec5fd1f3473e69d6f64450bcd7b469d8 (patch)
tree4dd783cb36f073f70e4ad31d21eec536d43695c2 /include/linux
parentf053db52654922ea0d2d1bbab4a980dd19867f68 (diff)
downloadbarebox-ef35406bec5fd1f3473e69d6f64450bcd7b469d8.tar.gz
barebox-ef35406bec5fd1f3473e69d6f64450bcd7b469d8.tar.xz
clk: fix of_clk_hw_simple_get stub definition
When !CONFIG_COMMON_CLK_OF_PROVIDER, we end up with a stub definition that defers from the out-of-line version. Fix that. Fixes: 054ccac22bd1 ("clk: implement of_clk_hw_{onecell,simple}_get") Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20240118084514.1294791-1-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/clk.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/clk.h b/include/linux/clk.h
index 7657ab6fc2..ab56c5c395 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -818,7 +818,7 @@ of_clk_src_simple_get(struct of_phandle_args *clkspec, void *data)
{
return ERR_PTR(-ENOENT);
}
-static inline struct clk *
+static inline struct clk_hw *
of_clk_hw_simple_get(struct of_phandle_args *clkspec, void *data)
{
return ERR_PTR(-ENOENT);