9
0
Fork 0

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>
This commit is contained in:
Antony Pavlov 2014-09-08 10:53:04 +04:00 committed by Sascha Hauer
parent 6b9a00a717
commit 3ef903c1c5
1 changed files with 6 additions and 0 deletions

View File

@ -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);