aboutsummaryrefslogtreecommitdiff
path: root/drivers/clocksource/clksrc-of.c
AgeCommit message (Collapse)AuthorFilesLines
2013-03-28clocksource: make CLOCKSOURCE_OF_DECLARE type safeArnd Bergmann1-1/+2
This ensures that a function pointer passed into CLOCKSOURCE_OF_DECLARE takes the same arguments that we use for calling that function later. Also fix the extraneous semicolon at end of the CLOCKSOURCE_OF_DECLARE definition. Signed-off-by: Arnd Bergmann <[email protected]> Acked-by: Rob Herring <[email protected]>
2013-03-11clocksource: pass DT node pointer to init functionsRob Herring1-2/+2
In cases where we have multiple nodes of the same type, we may need the node pointer to know which node was matched. Passing the node pointer also keeps the init function from having to match the node a 2nd time. Update bcm2835, vt8500, and tegra20 init functions for the new function prototype. Further tegra20 clean-ups are in follow-up commit. Signed-off-by: Rob Herring <[email protected]> Cc: John Stultz <[email protected]> Cc: Thomas Gleixner <[email protected]> Reviewed-by: Stephen Warren <[email protected]> Tested-by: Stephen Warren <[email protected]> Acked-by: Arnd Bergmann <[email protected]> Acked-by: Tony Prisk <[email protected]> Tested-by: Michal Simek <[email protected]>
2013-01-02clocksource: add common of_clksrc_init() functionStephen Warren1-0/+35
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 <[email protected]>