clocksource: add common of_clksrc_init() function

It is desirable to move all clocksource drivers to drivers/clocksource,
yet each requires its own initialization function. We'd rather not
pollute <linux/> with a header for each function. Instead, create a
single of_clksrc_init() function which will determine which clocksource
driver to initialize based on device tree.

Based on a similar patch for drivers/irqchip by Thomas Petazzoni.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
Stephen Warren
2012-11-19 16:41:20 -07:00
parent 6bb27d7349
commit ae278a935f
5 changed files with 57 additions and 0 deletions

View File

@@ -1,3 +1,6 @@
config CLKSRC_OF
bool
config CLKSRC_I8253
bool