[PATCH 02/19] clk: define clk_get_parent stub

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



clk_get_parent is used in stm32_ltdc driver, which can be compiled on
!HAVE_CLK platforms, because it can be selected when COMPILE_TEST=y.

This leads to a build error, because clk_get_parent wasn't defined in
that case. Fix this.

Signed-off-by: Ahmad Fatoum <a.fatoum@xxxxxxxxxxxxxx>
---
 include/linux/clk.h | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/include/linux/clk.h b/include/linux/clk.h
index 60534ddb732c..8509d5ece9d5 100644
--- a/include/linux/clk.h
+++ b/include/linux/clk.h
@@ -179,6 +179,11 @@ static inline struct clk *clk_get(struct device *dev, const char *id)
 	return NULL;
 }
 
+static inline struct clk *clk_get_parent(struct clk *clk)
+{
+	return NULL;
+}
+
 static inline int clk_enable(struct clk *clk)
 {
 	return 0;
@@ -744,6 +749,7 @@ static inline unsigned int of_clk_get_parent_count(struct device_node *np)
 {
 	return 0;
 }
+
 static inline int of_clk_init(void)
 {
 	return 0;
-- 
2.39.2





[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux