diff options
author | Andrey Smirnov <andrew.smirnov@gmail.com> | 2017-03-16 08:04:38 -0700 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2017-03-30 08:23:18 +0200 |
commit | 4185a0ea1b92c76c1024a06f0cb27c438ab861ab (patch) | |
tree | 9084200b3d0cdfc96bfd892896e287a103834465 /drivers/clocksource | |
parent | 441e9f5a72b245b671118f3e771eb129834a7a34 (diff) | |
download | barebox-4185a0ea1b92c76c1024a06f0cb27c438ab861ab.tar.gz barebox-4185a0ea1b92c76c1024a06f0cb27c438ab861ab.tar.xz |
clocksource: at91: Add DT compatibility table
Acked-by: Sam Ravnborg <sam@ravnborg.org>
Signed-off-by: Andrey Smirnov <andrew.smirnov@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/clocksource')
-rw-r--r-- | drivers/clocksource/timer-atmel-pit.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/clocksource/timer-atmel-pit.c b/drivers/clocksource/timer-atmel-pit.c index cc7ad2f39a..947a1e7f49 100644 --- a/drivers/clocksource/timer-atmel-pit.c +++ b/drivers/clocksource/timer-atmel-pit.c @@ -102,9 +102,18 @@ static int at91_pit_probe(struct device_d *dev) return init_clock(&cs); } +const static __maybe_unused struct of_device_id at91_pit_dt_ids[] = { + { + .compatible = "atmel,at91sam9260-pit", + }, { + /* sentinel */ + } +}; + static struct driver_d at91_pit_driver = { .name = "at91-pit", .probe = at91_pit_probe, + .of_compatible = DRV_OF_COMPAT(at91_pit_dt_ids), }; static int at91_pit_init(void) |