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: next-20130422~126^2~16 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=375dd6c4ac091aa321a931947bc48cdf43eb51a6;p=karo-tx-linux.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