9
0
Fork 0

clocksource: orion: add DT support

This adds device tree support to orion timer and also converts clk_get
to clk_lookup to find TCLK without device name reference.

Signed-off-by: Sebastian Hesselbarth <sebastian.hesselbarth@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sebastian Hesselbarth 2013-07-02 20:30:42 +02:00 committed by Sascha Hauer
parent 6e40610d51
commit dce879a14e
1 changed files with 6 additions and 0 deletions

View File

@ -64,9 +64,15 @@ static int orion_timer_probe(struct device_d *dev)
return 0;
}
static struct of_device_id orion_timer_dt_ids[] = {
{ .compatible = "marvell,orion-timer", },
{ }
};
static struct driver_d orion_timer_driver = {
.name = "orion-timer",
.probe = orion_timer_probe,
.of_compatible = DRV_OF_COMPAT(orion_timer_dt_ids),
};
static int orion_timer_init(void)