diff options
-rw-r--r-- | sys/dev/dc/if_dc.c | 3 | ||||
-rw-r--r-- | sys/pci/if_dc.c | 3 |
2 files changed, 2 insertions, 4 deletions
diff --git a/sys/dev/dc/if_dc.c b/sys/dev/dc/if_dc.c index f39e612..15acd86 100644 --- a/sys/dev/dc/if_dc.c +++ b/sys/dev/dc/if_dc.c @@ -2306,8 +2306,7 @@ dc_detach(dev) ifp = &sc->arpcom.ac_if; if (device_is_alive(dev)) { - if (bus_child_present(dev)) - dc_stop(sc); + dc_stop(sc); ether_ifdetach(ifp); device_delete_child(dev, sc->dc_miibus); bus_generic_detach(dev); diff --git a/sys/pci/if_dc.c b/sys/pci/if_dc.c index f39e612..15acd86 100644 --- a/sys/pci/if_dc.c +++ b/sys/pci/if_dc.c @@ -2306,8 +2306,7 @@ dc_detach(dev) ifp = &sc->arpcom.ac_if; if (device_is_alive(dev)) { - if (bus_child_present(dev)) - dc_stop(sc); + dc_stop(sc); ether_ifdetach(ifp); device_delete_child(dev, sc->dc_miibus); bus_generic_detach(dev); |