Skip to content

Commit e0c2536

Browse files
author
Rob Herring
committed
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>
1 parent f6161aa commit e0c2536

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

‎include/linux/clocksource.h‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -340,6 +340,7 @@ extern void clocksource_of_init(void);
340340
__used __section(__clksrc_of_table) \
341341
= { .compatible = compat, .data = fn };
342342
#else
343+
static inline void clocksource_of_init(void) {}
343344
#define CLOCKSOURCE_OF_DECLARE(name, compat, fn)
344345
#endif
345346

0 commit comments

Comments
 (0)