0078-clocksource-make-clocksource_of_init-pass-a-device_n.patch 1.1 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 0e00abf87d50e80b1ce5bda65a4d89adc530ba10 Mon Sep 17 00:00:00 2001
  2. From: John Crispin <[email protected]>
  3. Date: Thu, 23 May 2013 16:58:12 +0200
  4. Subject: [PATCH 78/79] clocksource: make clocksource_of_init() pass a
  5. device_node pointer
  6. If we look at the clocksources that are OF enabled we will notice, that they
  7. all do a of_find_matching_node() when being called. This patch changes
  8. clocksource_of_init() to always pass the struct device_node pointer to the
  9. init function.
  10. Signed-off-by: John Crispin <[email protected]>
  11. ---
  12. drivers/clocksource/clksrc-of.c | 4 ++--
  13. 1 file changed, 2 insertions(+), 2 deletions(-)
  14. diff --git a/drivers/clocksource/clksrc-of.c b/drivers/clocksource/clksrc-of.c
  15. index bdabdaa..3ef11fb 100644
  16. --- a/drivers/clocksource/clksrc-of.c
  17. +++ b/drivers/clocksource/clksrc-of.c
  18. @@ -26,10 +26,10 @@ void __init clocksource_of_init(void)
  19. {
  20. struct device_node *np;
  21. const struct of_device_id *match;
  22. - void (*init_func)(void);
  23. + void (*init_func)(struct device_node *);
  24. for_each_matching_node_and_match(np, __clksrc_of_table, &match) {
  25. init_func = match->data;
  26. - init_func();
  27. + init_func(np);
  28. }
  29. }
  30. --
  31. 1.7.10.4