mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled
@ 2025-07-30  3:50 chalianis1
  2025-07-30  3:50 ` [PATCH] arm: efi: add a dummy efi arch on ARM64 chalianis1
  2025-07-30  6:23 ` [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled Ahmad Fatoum
  0 siblings, 2 replies; 5+ messages in thread
From: chalianis1 @ 2025-07-30  3:50 UTC (permalink / raw)
  To: s.hauer; +Cc: barebox, Chali Anis

From: Chali Anis <chalianis1@gmail.com>

This permits to not compile when it's not used, fix undefined
reference error.

Signed-off-by: Chali Anis <chalianis1@gmail.com>
---
 drivers/clk/clk-fixed-factor.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/drivers/clk/clk-fixed-factor.c b/drivers/clk/clk-fixed-factor.c
index d2c808d40c63..ea04a4bf7f0f 100644
--- a/drivers/clk/clk-fixed-factor.c
+++ b/drivers/clk/clk-fixed-factor.c
@@ -97,6 +97,8 @@ struct clk_hw *clk_hw_register_fixed_factor(struct device *dev,
 						       flags, mult, div));
 }
 
+#ifdef CONFIG_COMMON_CLK_OF_PROVIDER
+
 /**
  * of_fixed_factor_clk_setup() - Setup function for simple fixed factor clock
  */
@@ -130,3 +132,4 @@ static int of_fixed_factor_clk_setup(struct device_node *node)
 }
 CLK_OF_DECLARE(fixed_factor_clk, "fixed-factor-clock",
 		of_fixed_factor_clk_setup);
+#endif
-- 
2.34.1




^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2025-08-04  9:42 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-07-30  3:50 [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled chalianis1
2025-07-30  3:50 ` [PATCH] arm: efi: add a dummy efi arch on ARM64 chalianis1
2025-07-30  6:12   ` Ahmad Fatoum
2025-07-30  6:23 ` [PATCH] clk: clk-fixed-factor: compile clk of provider only if it is enabled Ahmad Fatoum
     [not found]   ` <CAL+1fyCC0V3MO4tmgBJumbdPn7_BhQc-60s3QhGjye0rQQVpPw@mail.gmail.com>
2025-08-04  9:41     ` Ahmad Fatoum

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox