Unmap registers upon detach. Avoid panics when detaching a partially attached
authorkettenis <kettenis@openbsd.org>
Sat, 7 Aug 2010 16:16:18 +0000 (16:16 +0000)
committerkettenis <kettenis@openbsd.org>
Sat, 7 Aug 2010 16:16:18 +0000 (16:16 +0000)
commit132d309047c4796130eeae8120ff0ce9b5006967
tree523f49af64eecee5e333577ad41ddd45bf53a934
parent51fa35e58f3a821dedb521440ddc2b87a9364ec3
Unmap registers upon detach.  Avoid panics when detaching a partially attached
device.  Found out the hard way by hotplugging an unsupported "Soft-Mac"
device.

ok deraadt@
sys/dev/ic/pgt.c
sys/dev/pci/if_pgt_pci.c