clocksource: arm_smp_twd: Add devicetree support
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
91a68050e1
commit
0cfeb67d6b
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue