mirror of
https://github.com/opnsense/src.git
synced 2026-06-09 08:43:19 -04:00
Test that the emac device is enabled in probe function
MFC after: 3 days
This commit is contained in:
parent
99e6e1930c
commit
183a6b3de6
1 changed files with 3 additions and 0 deletions
|
|
@ -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 a new issue