clocksource: add empty version of clocksource_of_init
authorRob Herring <rob.herring@calxeda.com>
Mon, 11 Mar 2013 02:52:53 +0000 (21:52 -0500)
committerRob Herring <rob.herring@calxeda.com>
Mon, 11 Mar 2013 13:40:12 +0000 (08:40 -0500)
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 <rob.herring@calxeda.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
include/linux/clocksource.h

index 27cfda427dd9106b15af57c3ad4825445a4b8feb..08ed5e19d8c68024c64636c494635c54acf4809b 100644 (file)
@@ -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