ralink: add 3.14 support
[openwrt.git] / target / linux / ramips / patches-3.14 / 0006-MIPS-ralink-add-missing-clk_set_rate-to-clk.c.patch
1 From 979ad9f0324ad8fa5eb4a00b57d9feb061aa3200 Mon Sep 17 00:00:00 2001
2 From: John Crispin <blogic@openwrt.org>
3 Date: Sun, 16 Mar 2014 04:38:07 +0000
4 Subject: [PATCH 06/57] MIPS: ralink: add missing clk_set_rate() to clk.c
5
6 This function was missing causing allmod to fail.
7
8 Signed-off-by: John Crispin <blogic@openwrt.org>
9 ---
10  arch/mips/ralink/clk.c |    6 ++++++
11  1 file changed, 6 insertions(+)
12
13 diff --git a/arch/mips/ralink/clk.c b/arch/mips/ralink/clk.c
14 index 5d0983d..feb5a9b 100644
15 --- a/arch/mips/ralink/clk.c
16 +++ b/arch/mips/ralink/clk.c
17 @@ -56,6 +56,12 @@ unsigned long clk_get_rate(struct clk *clk)
18  }
19  EXPORT_SYMBOL_GPL(clk_get_rate);
20  
21 +int clk_set_rate(struct clk *clk, unsigned long rate)
22 +{
23 +       return -1;
24 +}
25 +EXPORT_SYMBOL_GPL(clk_set_rate);
26 +
27  void __init plat_time_init(void)
28  {
29         struct clk *clk;
30 -- 
31 1.7.10.4
32