mirror of
https://github.com/opnsense/src.git
synced 2026-02-20 00:11:07 -05:00
dpaa: Don't probe disabled devices
Probing disabled devices just adds noise.
This commit is contained in:
parent
598e073f74
commit
41e85e8e35
2 changed files with 6 additions and 0 deletions
|
|
@ -72,6 +72,9 @@ static int
|
|||
fman_fdt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,fman"))
|
||||
return (ENXIO);
|
||||
|
||||
|
|
|
|||
|
|
@ -98,6 +98,9 @@ static int
|
|||
dtsec_fdt_probe(device_t dev)
|
||||
{
|
||||
|
||||
if (!ofw_bus_status_okay(dev))
|
||||
return (ENXIO);
|
||||
|
||||
if (!ofw_bus_is_compatible(dev, "fsl,fman-dtsec") &&
|
||||
!ofw_bus_is_compatible(dev, "fsl,fman-xgec"))
|
||||
return (ENXIO);
|
||||
|
|
|
|||
Loading…
Reference in a new issue