dpaa: Don't probe disabled devices
Probing disabled devices just adds noise.
This commit is contained in:
parent
598e073f74
commit
41e85e8e35
@ -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 New Issue
Block a user