summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/vt8500_timer.c
diff options
context:
space:
mode:
authorRob Herring <rob.herring@calxeda.com>2013-02-06 14:40:22 -0600
committerRob Herring <rob.herring@calxeda.com>2013-03-11 08:42:07 -0500
commiteffbfdd7baf7babc73154b87a5ff940969cf6559 (patch)
tree7aab87a4f5be6ed1ab817cdd65dcd4d983094e37 /drivers/clocksource/vt8500_timer.c
parente0c25362384f4be9c755c98560cd4b1cdb2ec79c (diff)
downloadop-kernel-dev-effbfdd7baf7babc73154b87a5ff940969cf6559.zip
op-kernel-dev-effbfdd7baf7babc73154b87a5ff940969cf6559.tar.gz
clocksource: pass DT node pointer to init functions
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 <rob.herring@calxeda.com> Cc: John Stultz <johnstul@us.ibm.com> Cc: Thomas Gleixner <tglx@linutronix.de> Reviewed-by: Stephen Warren <swarren@nvidia.com> Tested-by: Stephen Warren <swarren@nvidia.com> Acked-by: Arnd Bergmann <arnd@arndb.de> Acked-by: Tony Prisk <linux@prisktech.co.nz> Tested-by: Michal Simek <michal.simek@xilinx.com>
Diffstat (limited to 'drivers/clocksource/vt8500_timer.c')
-rw-r--r--drivers/clocksource/vt8500_timer.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/drivers/clocksource/vt8500_timer.c b/drivers/clocksource/vt8500_timer.c
index 8efc86b..2422552 100644
--- a/drivers/clocksource/vt8500_timer.c
+++ b/drivers/clocksource/vt8500_timer.c
@@ -129,22 +129,10 @@ static struct irqaction irq = {
.dev_id = &clockevent,
};
-static struct of_device_id vt8500_timer_ids[] = {
- { .compatible = "via,vt8500-timer" },
- { }
-};
-
-static void __init vt8500_timer_init(void)
+static void __init vt8500_timer_init(struct device_node *np)
{
- struct device_node *np;
int timer_irq;
- np = of_find_matching_node(NULL, vt8500_timer_ids);
- if (!np) {
- pr_err("%s: Timer description missing from Device Tree\n",
- __func__);
- return;
- }
regbase = of_iomap(np, 0);
if (!regbase) {
pr_err("%s: Missing iobase description in Device Tree\n",
OpenPOWER on IntegriCloud