Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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>

authored by

Nikita Shubin and committed by
Arnd Bergmann
177c20d7 b3ab5787

+8
+8
drivers/watchdog/ts72xx_wdt.c
··· 12 12 */ 13 13 14 14 #include <linux/platform_device.h> 15 + #include <linux/mod_devicetable.h> 15 16 #include <linux/module.h> 16 17 #include <linux/watchdog.h> 17 18 #include <linux/io.h> ··· 161 160 return 0; 162 161 } 163 162 163 + static const struct of_device_id ts72xx_wdt_of_ids[] = { 164 + { .compatible = "technologic,ts7200-wdt" }, 165 + { /* sentinel */ } 166 + }; 167 + MODULE_DEVICE_TABLE(of, ts72xx_wdt_of_ids); 168 + 164 169 static struct platform_driver ts72xx_wdt_driver = { 165 170 .probe = ts72xx_wdt_probe, 166 171 .driver = { 167 172 .name = "ts72xx-wdt", 173 + .of_match_table = ts72xx_wdt_of_ids, 168 174 }, 169 175 }; 170 176