Skip to content

Commit

Permalink
clocksource: add empty version of clocksource_of_init
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Rob Herring committed Mar 11, 2013
1 parent f6161aa commit e0c2536
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions include/linux/clocksource.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit e0c2536

Please sign in to comment.