Skip to content

Commit

Permalink
MFC rev 1.2:
Browse files Browse the repository at this point in the history
  Detach correctly so there is no need to panic during reattach.
  • Loading branch information
Hasso Tepper committed Aug 9, 2008
1 parent e92b022 commit 35fb90d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions sys/dev/misc/cmx/cmx.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
* SUCH DAMAGE.
*
* $FreeBSD: src/sys/dev/cmx/cmx.c,v 1.1 2008/03/06 08:09:45 rink Exp $
* $DragonFly: src/sys/dev/misc/cmx/cmx.c,v 1.1 2008/04/23 08:57:10 hasso Exp $
* $DragonFly: src/sys/dev/misc/cmx/cmx.c,v 1.1.2.1 2008/08/09 09:15:05 hasso Exp $
*/

/*
Expand Down Expand Up @@ -284,10 +284,10 @@ cmx_detach(device_t dev)
}

wakeup(sc);
destroy_dev(sc->cdev);

DEBUG_printf(dev, "releasing resources\n");
cmx_release_resources(dev);
dev_ops_remove(&cmx_ops, -1, device_get_unit(dev));

return 0;
}

Expand Down

0 comments on commit 35fb90d

Please sign in to comment.