summaryrefslogtreecommitdiffstats
path: root/drivers/watchdog
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2020-05-14 07:11:19 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2020-05-14 07:11:19 +0200
commit6e68393fb17254850b9bfc8e268569a05111c29c (patch)
treee5a5b22a64f3772458f44c7110f5ec9653d56bcd /drivers/watchdog
parent45000aac11315d7ccbaeefa29cafc8303ac206cb (diff)
parent6ccb3eb306022f7334a086f46d03a189e0abd937 (diff)
downloadbarebox-6e68393fb17254850b9bfc8e268569a05111c29c.tar.gz
barebox-6e68393fb17254850b9bfc8e268569a05111c29c.tar.xz
Merge branch 'for-next/mxs'
Diffstat (limited to 'drivers/watchdog')
-rw-r--r--drivers/watchdog/im28wd.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/watchdog/im28wd.c b/drivers/watchdog/im28wd.c
index 2b233ede20..6ebd97e5f5 100644
--- a/drivers/watchdog/im28wd.c
+++ b/drivers/watchdog/im28wd.c
@@ -229,9 +229,18 @@ static void imx28_wd_remove(struct device_d *dev)
free(priv);
}
+static __maybe_unused struct of_device_id imx28_wdt_dt_ids[] = {
+ {
+ .compatible = "fsl,stmp3xxx-rtc",
+ }, {
+ /* sentinel */
+ }
+};
+
static struct driver_d imx28_wd_driver = {
.name = "im28wd",
.probe = imx28_wd_probe,
.remove = imx28_wd_remove,
+ .of_compatible = DRV_OF_COMPAT(imx28_wdt_dt_ids),
};
device_platform_driver(imx28_wd_driver);