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 <nikita.shubin@maquefel.me> Tested-by: Alexander Sverdlin <alexander.sverdlin@gmail.com> Reviewed-by: Guenter Roeck <linux@roeck-us.net> Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org> Reviewed-by: Mark Brown <broonie@kernel.org> Reviewed-by: Andy Shevchenko <andy@kernel.org> Acked-by: Miquel Raynal <miquel.raynal@bootlin.com> Acked-by: Vinod Koul <vkoul@kernel.org> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
1 parent b3ab578 commit 177c20d

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

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)