We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b3ab578 commit 177c20dCopy full SHA for 177c20d
drivers/watchdog/ts72xx_wdt.c
@@ -12,6 +12,7 @@
12
*/
13
14
#include <linux/platform_device.h>
15
+#include <linux/mod_devicetable.h>
16
#include <linux/module.h>
17
#include <linux/watchdog.h>
18
#include <linux/io.h>
@@ -160,10 +161,17 @@ static int ts72xx_wdt_probe(struct platform_device *pdev)
160
161
return 0;
162
}
163
164
+static const struct of_device_id ts72xx_wdt_of_ids[] = {
165
+ { .compatible = "technologic,ts7200-wdt" },
166
+ { /* sentinel */ }
167
+};
168
+MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids);
169
+
170
static struct platform_driver ts72xx_wdt_driver = {
171
.probe = ts72xx_wdt_probe,
172
.driver = {
173
.name = "ts72xx-wdt",
174
+ .of_match_table = ts72xx_wdt_of_ids,
175
},
176
};
177
0 commit comments