From: Rob Herring Date: Mon, 11 Mar 2013 02:52:53 +0000 (-0500) Subject: clocksource: add empty version of clocksource_of_init X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=e0c25362384f4be9c755c98560cd4b1cdb2ec79c;p=openwrt%2Fstaging%2Fblogic.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 27cfda427dd9..08ed5e19d8c6 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