MIPS: ralink: Add missing clk_round_rate().
authorJohn Crispin <john@phrozen.org>
Tue, 20 Dec 2016 18:12:44 +0000 (19:12 +0100)
committerRalf Baechle <ralf@linux-mips.org>
Tue, 3 Jan 2017 15:34:47 +0000 (16:34 +0100)
As we dont use the common clock api yet we need to add this stub to allow
building drivers that use the API.

Signed-off-by: John Crispin <john@phrozen.org>
Cc: linux-mips@linux-mips.org
Patchwork: https://patchwork.linux-mips.org/patch/14900/
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
arch/mips/ralink/clk.c

index ebaa7cc0e9957b63905f04f5444f81d28f043aa4..64c3db5e8e8a249b51341a7ab33382efe048b066 100644 (file)
@@ -62,6 +62,12 @@ int clk_set_rate(struct clk *clk, unsigned long rate)
 }
 EXPORT_SYMBOL_GPL(clk_set_rate);
 
+long clk_round_rate(struct clk *clk, unsigned long rate)
+{
+       return -1;
+}
+EXPORT_SYMBOL_GPL(clk_round_rate);
+
 void __init plat_time_init(void)
 {
        struct clk *clk;