aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-03-10 21:52:53 -0500
committerRob Herring <rob.herring@calxeda.com>2013-03-11 08:40:12 -0500
commite0c25362384f4be9c755c98560cd4b1cdb2ec79c (patch)
tree6ca2ced615af283f1e10bb49d020fcdcf0c9bae8
parentLinux 3.9-rc2 (diff)
downloadlinux-dev-e0c25362384f4be9c755c98560cd4b1cdb2ec79c.tar.xz
linux-dev-e0c25362384f4be9c755c98560cd4b1cdb2ec79c.zip
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 <rob.herring@calxeda.com> Cc: John Stultz <john.stultz@linaro.org> Cc: Thomas Gleixner <tglx@linutronix.de>
-rw-r--r--include/linux/clocksource.h1
1 files changed, 1 insertions, 0 deletions
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