Test that the emac device is enabled in probe function

MFC after:	3 days
This commit is contained in:
Emmanuel Vadot 2016-11-23 18:07:44 +00:00
parent 99e6e1930c
commit 183a6b3de6

View File

@ -783,6 +783,9 @@ static int
emac_probe(device_t dev)
{
if (!ofw_bus_status_okay(dev))
return (ENXIO);
if (!ofw_bus_is_compatible(dev, "allwinner,sun4i-a10-emac"))
return (ENXIO);