9
0
Fork 0

clocksource: arm_smp_twd: Add devicetree support

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
Sascha Hauer 2013-09-04 23:32:41 +02:00
parent 91a68050e1
commit 0cfeb67d6b
1 changed files with 9 additions and 0 deletions

View File

@ -89,9 +89,18 @@ static int smp_twd_probe(struct device_d *dev)
return 0;
}
static __maybe_unused struct of_device_id smp_twd_compatible[] = {
{
.compatible = "arm,cortex-a9-twd-timer",
}, {
/* sentinel */
}
};
static struct driver_d smp_twd_driver = {
.name = "smp_twd",
.probe = smp_twd_probe,
.of_compatible = DRV_OF_COMPAT(smp_twd_compatible),
};
static int smp_twd_init(void)