diff options
author | Antony Pavlov <antonynpavlov@gmail.com> | 2014-09-08 10:53:04 +0400 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-09-09 10:20:29 +0200 |
commit | 3ef903c1c5fb5bdd9d78a7d899868f7c47c5087e (patch) | |
tree | 459022d4f897414c9ad4c3311ba50aee8ff147ae | |
parent | 6b9a00a717a2a8834a9ac700d3e2907f9c0516c4 (diff) | |
download | barebox-3ef903c1c5fb5bdd9d78a7d899868f7c47c5087e.tar.gz barebox-3ef903c1c5fb5bdd9d78a7d899868f7c47c5087e.tar.xz |
net: ethoc: add device tree support
Signed-off-by: Antony Pavlov <antonynpavlov@gmail.com>
Cc: Franck Jullien <franck.jullien@gmail.com>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | drivers/net/ethoc.c | 6 |
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); |