110-export-missing-clk-functions.patch 857 B

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