Test that the emac device is enabled in probe function
MFC after: 3 days
This commit is contained in:
parent
99e6e1930c
commit
183a6b3de6
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user