ar71xx: Add QCA955X GPIO mux and function definitions
[openwrt.git] / target / linux / ar71xx / patches-4.1 / 110-export-missing-clk-functions.patch
1 This exports some clock functions used by some modules.
2 This fixes this linking problem:
3
4 ERROR: "clk_set_rate" [drivers/usb/phy/phy-generic.ko] undefined!
5 ERROR: "clk_round_rate" [drivers/media/v4l2-core/videodev.ko] undefined!
6 ERROR: "clk_set_rate" [drivers/media/v4l2-core/videodev.ko] undefined!
7
8 In the upstream kernel it is fixed here:
9 https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=411520af8ec9456886359b42628e583ac58e7e44
10
11 --- a/arch/mips/ath79/clock.c
12 +++ b/arch/mips/ath79/clock.c
13 @@ -488,3 +488,15 @@ unsigned long clk_get_rate(struct clk *c
14         return clk->rate;
15  }
16  EXPORT_SYMBOL(clk_get_rate);
17 +
18 +int clk_set_rate(struct clk *clk, unsigned long rate)
19 +{
20 +       return 0;
21 +}
22 +EXPORT_SYMBOL_GPL(clk_set_rate);
23 +
24 +long clk_round_rate(struct clk *clk, unsigned long rate)
25 +{
26 +       return 0;
27 +}
28 +EXPORT_SYMBOL_GPL(clk_round_rate);