Skip to content

Commit 177c20d

Browse files
maquefelarndb
authored andcommitted
wdt: ts72xx: add DT support for ts72xx
Add OF ID match table. Signed-off-by: Nikita Shubin <[email protected]> Tested-by: Alexander Sverdlin <[email protected]> Reviewed-by: Guenter Roeck <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Reviewed-by: Krzysztof Kozlowski <[email protected]> Reviewed-by: Mark Brown <[email protected]> Reviewed-by: Andy Shevchenko <[email protected]> Acked-by: Miquel Raynal <[email protected]> Acked-by: Vinod Koul <[email protected]> Signed-off-by: Arnd Bergmann <[email protected]>
1 parent b3ab578 commit 177c20d

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

drivers/watchdog/ts72xx_wdt.c

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
*/
1313

1414
#include <linux/platform_device.h>
15+
#include <linux/mod_devicetable.h>
1516
#include <linux/module.h>
1617
#include <linux/watchdog.h>
1718
#include <linux/io.h>
@@ -160,10 +161,17 @@ static int ts72xx_wdt_probe(struct platform_device *pdev)
160161
return 0;
161162
}
162163

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+
163170
static struct platform_driver ts72xx_wdt_driver = {
164171
.probe = ts72xx_wdt_probe,
165172
.driver = {
166173
.name = "ts72xx-wdt",
174+
.of_match_table = ts72xx_wdt_of_ids,
167175
},
168176
};
169177

0 commit comments

Comments
 (0)