From: Rob Herring Date: Mon, 11 Mar 2013 02:52:53 +0000 (-0500) Subject: clocksource: add empty version of clocksource_of_init X-Git-Tag: upstream/snapshot3+hdmi~5121^2~10^2~26 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e0c25362384f4be9c755c98560cd4b1cdb2ec79c;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git clocksource: add empty version of clocksource_of_init Add an empty clocksource_of_init when !CLKSRC_OF. This is needed for builds where no timer has selected CLKSRC_OF. Signed-off-by: Rob Herring Cc: John Stultz Cc: Thomas Gleixner --- diff --git a/include/linux/clocksource.h b/include/linux/clocksource.h index 27cfda4..08ed5e1 100644 --- a/include/linux/clocksource.h +++ b/include/linux/clocksource.h @@ -340,6 +340,7 @@ extern void clocksource_of_init(void); __used __section(__clksrc_of_table) \ = { .compatible = compat, .data = fn }; #else +static inline void clocksource_of_init(void) {} #define CLOCKSOURCE_OF_DECLARE(name, compat, fn) #endif