aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/bhnd
diff options
context:
space:
mode:
authorLandon J. Fuller <landonf@FreeBSD.org>2017-12-02 00:52:59 +0000
committerLandon J. Fuller <landonf@FreeBSD.org>2017-12-02 00:52:59 +0000
commit19b3e4aa48556024cbdbb939ad5b11815a394758 (patch)
tree05822bd3ddcb14af016e95fb8bd6b642d0d1a1cb /sys/dev/bhnd
parent1fe84e6f44b2cf591dfd4181f2cc54bb0d65e1c7 (diff)
Notes
Diffstat (limited to 'sys/dev/bhnd')
-rw-r--r--sys/dev/bhnd/cores/chipc/chipc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bhnd/cores/chipc/chipc.c b/sys/dev/bhnd/cores/chipc/chipc.c
index 0f3e3fa5782a2..10cc7142048da 100644
--- a/sys/dev/bhnd/cores/chipc/chipc.c
+++ b/sys/dev/bhnd/cores/chipc/chipc.c
@@ -245,10 +245,10 @@ chipc_detach(device_t dev)
sc = device_get_softc(dev);
- if ((error = bhnd_deregister_provider(dev, BHND_SERVICE_ANY)))
+ if ((error = bus_generic_detach(dev)))
return (error);
- if ((error = bus_generic_detach(dev)))
+ if ((error = bhnd_deregister_provider(dev, BHND_SERVICE_ANY)))
return (error);
chipc_release_region(sc, sc->core_region, RF_ALLOCATED|RF_ACTIVE);