summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethoc.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/ethoc.c')
-rw-r--r--drivers/net/ethoc.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/drivers/net/ethoc.c b/drivers/net/ethoc.c
index 679e1e552a..35d7d4623b 100644
--- a/drivers/net/ethoc.c
+++ b/drivers/net/ethoc.c
@@ -565,8 +565,14 @@ static int ethoc_probe(struct device_d *dev)
return 0;
}
+static struct of_device_id ethoc_dt_ids[] = {
+ { .compatible = "opencores,ethoc", },
+ { }
+};
+
static struct driver_d ethoc_driver = {
.name = "ethoc",
.probe = ethoc_probe,
+ .of_compatible = DRV_OF_COMPAT(ethoc_dt_ids),
};
device_platform_driver(ethoc_driver);