Author: hauke Date: 2015-08-09 14:36:24 +0200 (Sun, 09 Aug 2015) New Revision: 46572
Added: trunk/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch Log: 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 <[email protected]> Added: trunk/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch =================================================================== --- trunk/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch (rev 0) +++ trunk/target/linux/ar71xx/patches-4.1/110-export-missing-clk-functions.patch 2015-08-09 12:36:24 UTC (rev 46572) @@ -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); _______________________________________________ openwrt-commits mailing list [email protected] https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-commits
