- Find register range from the device tree.
Signed-off-by: Nikita Shubin <nikita.shubin@maquefel.me>
  * daemon dies.
  */
 
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/module.h>
 #include <linux/watchdog.h>
        return 0;
 }
 
+static const struct of_device_id ep93xx_wdt_of_ids[] = {
+       { .compatible = "cirrus,ep9301-wdt" },
+       {},
+};
+MODULE_DEVICE_TABLE(of, ep93xx_wdt_of_ids);
+
 static struct platform_driver ep93xx_wdt_driver = {
        .driver         = {
                .name   = "ep93xx-wdt",
+               .of_match_table = ep93xx_wdt_of_ids,
        },
        .probe          = ep93xx_wdt_probe,
 };