aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/intpm/intpm.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/dev/intpm/intpm.c')
-rw-r--r--sys/dev/intpm/intpm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/dev/intpm/intpm.c b/sys/dev/intpm/intpm.c
index 6fc228ac0cd0..3aa76ff48263 100644
--- a/sys/dev/intpm/intpm.c
+++ b/sys/dev/intpm/intpm.c
@@ -202,8 +202,7 @@ intsmb_release_resources(device_t dev)
{
struct intsmb_softc *sc = device_get_softc(dev);
- if (sc->smbus)
- device_delete_child(dev, sc->smbus);
+ device_delete_children(dev);
if (sc->irq_hand)
bus_teardown_intr(dev, sc->irq_res, sc->irq_hand);
if (sc->irq_res)