summaryrefslogtreecommitdiffstats
path: root/drivers/clocksource/nomadik-mtu.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/clocksource/nomadik-mtu.c')
-rw-r--r--drivers/clocksource/nomadik-mtu.c12
1 files changed, 1 insertions, 11 deletions
diff --git a/drivers/clocksource/nomadik-mtu.c b/drivers/clocksource/nomadik-mtu.c
index 7982cb0f25f..b9415b622f5 100644
--- a/drivers/clocksource/nomadik-mtu.c
+++ b/drivers/clocksource/nomadik-mtu.c
@@ -256,23 +256,13 @@ void __init nmdk_timer_init(void __iomem *base, int irq)
__nmdk_timer_init(base, irq, pclk0, clk0);
}
-static struct of_device_id nmdk_timer_match[] __initconst = {
- { .compatible = "st,nomadik-mtu" },
- {}
-};
-
-static void __init nmdk_timer_of_init(void)
+static void __init nmdk_timer_of_init(struct device_node *node)
{
- struct device_node *node;
struct clk *pclk;
struct clk *clk;
void __iomem *base;
int irq;
- node = of_find_matching_node(NULL, nmdk_timer_match);
- if (!node)
- panic("No timer node");
-
base = of_iomap(node, 0);
if (!base)
panic("Can't remap registers");