|
@@ -95,23 +95,13 @@ static irqreturn_t bcm2835_time_interrupt(int irq, void *dev_id)
|
|
|
}
|
|
|
}
|
|
|
|
|
|
-static struct of_device_id bcm2835_time_match[] __initconst = {
|
|
|
- { .compatible = "brcm,bcm2835-system-timer" },
|
|
|
- {}
|
|
|
-};
|
|
|
-
|
|
|
-static void __init bcm2835_timer_init(void)
|
|
|
+static void __init bcm2835_timer_init(struct device_node *node)
|
|
|
{
|
|
|
- struct device_node *node;
|
|
|
void __iomem *base;
|
|
|
u32 freq;
|
|
|
int irq;
|
|
|
struct bcm2835_timer *timer;
|
|
|
|
|
|
- node = of_find_matching_node(NULL, bcm2835_time_match);
|
|
|
- if (!node)
|
|
|
- panic("No bcm2835 timer node");
|
|
|
-
|
|
|
base = of_iomap(node, 0);
|
|
|
if (!base)
|
|
|
panic("Can't remap registers");
|