From 3ef903c1c5fb5bdd9d78a7d899868f7c47c5087e Mon Sep 17 00:00:00 2001 From: Antony Pavlov Date: Mon, 8 Sep 2014 10:53:04 +0400 Subject: net: ethoc: add device tree support Signed-off-by: Antony Pavlov Cc: Franck Jullien Signed-off-by: Sascha Hauer --- drivers/net/ethoc.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'drivers/net') 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); -- cgit v1.2.3