Handle (unit == -1) case in the device_find_child() function as already used
authorHasso Tepper <hasso@dragonflybsd.org>
Tue, 2 Sep 2008 17:48:26 +0000 (17:48 +0000)
committerHasso Tepper <hasso@dragonflybsd.org>
Tue, 2 Sep 2008 17:48:26 +0000 (17:48 +0000)
commita2a274f40071aaa937673720f79c2056944fc9bc
tree1977389fac107b904fa5d2b14cb471ccd03b6522
parent79dc5fc68b82cbd37e951d5ef3f85d92c32e70ae
Handle (unit == -1) case in the device_find_child() function as already used
by agp(4) and coretemp(4) code. Fixes unload/load cycle of the coretemp(4),
agp(4) has more problems.

Obtained-from: FreeBSD
sys/kern/subr_bus.c