]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Clear the a device's description string anytime it's driver changes.
authorjhb <jhb@FreeBSD.org>
Mon, 27 Feb 2012 16:08:18 +0000 (16:08 +0000)
committerjhb <jhb@FreeBSD.org>
Mon, 27 Feb 2012 16:08:18 +0000 (16:08 +0000)
commit4110bb206bc0bd2ea81164dc7f0f861d50674b40
treeb73112712dcc6e16414eb303a76339fdf8982a82
parent96aacc2279b7b65fc0c8ff707abe3d020c1e8378
Clear the a device's description string anytime it's driver changes.
Descriptions  are specific to drivers and we don't change drivers on attached
devices.  This fixes a few places where we were not clearing the description
when detaching a driver (e.g. with device_attach() failed).  While here, fix
a few other nits:
- Remove spurious call to remove a device's driver from
  devclass_driver_deleted().  device_detach() removes it already.
- Fix a typo.
sys/kern/subr_bus.c