aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux/ar71xx/patches-4.1
diff options
context:
space:
mode:
authorHauke Mehrtens <hauke@openwrt.org>2015-08-09 12:36:24 +0000
committerHauke Mehrtens <hauke@openwrt.org>2015-08-09 12:36:24 +0000
commit03a2c8ae2e08f74268e7d8f845eb4f12b30e234f (patch)
tree75427b1a02b69b6324ae05b0f310827d9887d600 /target/linux/ar71xx/patches-4.1
parentd10caae910327f3bf5163943d364c6c914921239 (diff)
downloadmaster-187ad058-03a2c8ae2e08f74268e7d8f845eb4f12b30e234f.tar.gz
master-187ad058-03a2c8ae2e08f74268e7d8f845eb4f12b30e234f.tar.bz2
master-187ad058-03a2c8ae2e08f74268e7d8f845eb4f12b30e234f.zip
ar71xx: export some clock functions used by some modules
This fixes this linking problem: ERROR: "clk_set_rate" [drivers/usb/phy/phy-generic.ko] undefined! ERROR: "clk_round_rate" [drivers/media/v4l2-core/videodev.ko] undefined! ERROR: "clk_set_rate" [drivers/media/v4l2-core/videodev.ko] undefined! In the upstream kernel it is fixed here: https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=411520af8ec9456886359b42628e583ac58e7e44 This closes: #20162, #20172, #20196, #20197, #20202 and #20308 Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de> git-svn-id: svn://svn.openwrt.org/openwrt/trunk@46572 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'target/linux/ar71xx/patches-4.1')
-rw-r--r--target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch28
1 files changed, 28 insertions, 0 deletions
diff --git a/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch b/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch
new file mode 100644
index 0000000000..b30087c03e
--- /dev/null
+++ b/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch
@@ -0,0 +1,28 @@
+This exports some clock functions used by some modules.
+This fixes this linking problem:
+
+ERROR: "clk_set_rate" [drivers/usb/phy/phy-generic.ko] undefined!
+ERROR: "clk_round_rate" [drivers/media/v4l2-core/videodev.ko] undefined!
+ERROR: "clk_set_rate" [drivers/media/v4l2-core/videodev.ko] undefined!
+
+In the upstream kernel it is fixed here:
+https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=411520af8ec9456886359b42628e583ac58e7e44
+
+--- a/arch/mips/ath79/clock.c
++++ b/arch/mips/ath79/clock.c
+@@ -488,3 +488,15 @@ unsigned long clk_get_rate(struct clk *c
+ return clk->rate;
+ }
+ EXPORT_SYMBOL(clk_get_rate);
++
++int clk_set_rate(struct clk *clk, unsigned long rate)
++{
++ return 0;
++}
++EXPORT_SYMBOL_GPL(clk_set_rate);
++
++long clk_round_rate(struct clk *clk, unsigned long rate)
++{
++ return 0;
++}
++EXPORT_SYMBOL_GPL(clk_round_rate);