|
@@ -25,6 +25,7 @@
|
|
|
#include <linux/io.h>
|
|
|
#include <linux/spinlock.h>
|
|
|
#include <linux/clk.h>
|
|
|
+#include <linux/of.h>
|
|
|
#include <mach/bridge-regs.h>
|
|
|
|
|
|
/*
|
|
@@ -295,6 +296,12 @@ static void orion_wdt_shutdown(struct platform_device *pdev)
|
|
|
orion_wdt_disable();
|
|
|
}
|
|
|
|
|
|
+static const struct of_device_id orion_wdt_of_match_table[] __devinitdata = {
|
|
|
+ { .compatible = "marvell,orion-wdt", },
|
|
|
+ {},
|
|
|
+};
|
|
|
+MODULE_DEVICE_TABLE(of, orion_wdt_of_match_table);
|
|
|
+
|
|
|
static struct platform_driver orion_wdt_driver = {
|
|
|
.probe = orion_wdt_probe,
|
|
|
.remove = __devexit_p(orion_wdt_remove),
|
|
@@ -302,6 +309,7 @@ static struct platform_driver orion_wdt_driver = {
|
|
|
.driver = {
|
|
|
.owner = THIS_MODULE,
|
|
|
.name = "orion_wdt",
|
|
|
+ .of_match_table = of_match_ptr(orion_wdt_of_match_table),
|
|
|
},
|
|
|
};
|
|
|
|