Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e0c25362 authored by Rob Herring's avatar Rob Herring
Browse files

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: default avatarRob Herring <rob.herring@calxeda.com>
Cc: John Stultz <john.stultz@linaro.org>
Cc: Thomas Gleixner <tglx@linutronix.de>
parent f6161aa1
Loading
Loading
Loading
Loading
+1 −0
Original line number Original line Diff line number Diff line
@@ -340,6 +340,7 @@ extern void clocksource_of_init(void);
		__used __section(__clksrc_of_table)			\
		__used __section(__clksrc_of_table)			\
		 = { .compatible = compat, .data = fn };
		 = { .compatible = compat, .data = fn };
#else
#else
static inline void clocksource_of_init(void) {}
#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)
#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)
#endif
#endif