[PATCH 2/5] ARM: versatile: provide clk_set_rate stub

Lucas Stach l.stach at pengutronix.de
Tue Mar 10 12:59:05 PDT 2015


Some drivers depend on this symbol and this fixes a failure
to link them.

Signed-off-by: Lucas Stach <l.stach at pengutronix.de>
---
 arch/arm/mach-versatile/core.c | 6 ++++++
 1 file changed, 6 insertions(+)

diff --git a/arch/arm/mach-versatile/core.c b/arch/arm/mach-versatile/core.c
index 253e408db9ad..c671aa6173fa 100644
--- a/arch/arm/mach-versatile/core.c
+++ b/arch/arm/mach-versatile/core.c
@@ -57,6 +57,12 @@ unsigned long clk_get_rate(struct clk *clk)
 EXPORT_SYMBOL(clk_get_rate);
 
 /* enable and disable do nothing */
+int clk_set_rate(struct clk *clk, unsigned long rate)
+{
+	return 0;
+}
+EXPORT_SYMBOL(clk_set_rate);
+
 int clk_enable(struct clk *clk)
 {
 	return 0;
-- 
2.1.4




More information about the barebox mailing list