0006-MIPS-ralink-add-missing-clk_set_rate-to-clk.c.patch 722 B

123456789101112131415161718192021222324252627
  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. This function was missing causing allmod to fail.
  6. Signed-off-by: John Crispin <blogic@openwrt.org>
  7. ---
  8. arch/mips/ralink/clk.c | 6 ++++++
  9. 1 file changed, 6 insertions(+)
  10. --- a/arch/mips/ralink/clk.c
  11. +++ b/arch/mips/ralink/clk.c
  12. @@ -56,6 +56,12 @@ unsigned long clk_get_rate(struct clk *c
  13. }
  14. EXPORT_SYMBOL_GPL(clk_get_rate);
  15. +int clk_set_rate(struct clk *clk, unsigned long rate)
  16. +{
  17. + return -1;
  18. +}
  19. +EXPORT_SYMBOL_GPL(clk_set_rate);
  20. +
  21. void __init plat_time_init(void)
  22. {
  23. struct clk *clk;