]> CyberLeo.Net >> Repos - FreeBSD/stable/8.git/commit
MFC 232218:
authorjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 12:06:32 +0000 (12:06 +0000)
committerjhb <jhb@ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f>
Fri, 23 Mar 2012 12:06:32 +0000 (12:06 +0000)
commit116889cc9a3df7e3306ab9f6526d39b5f8722029
tree6b33cea382c647c2624ad2e2dfe53b8cdad102ea
parent9150044fc66e875619a42e1f44deb7f38a57afc4
MFC 232218:
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. if 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.

git-svn-id: svn://svn.freebsd.org/base/stable/8@233359 ccf9f872-aa2e-dd11-9fc8-001c23d0bc1f
sys/kern/subr_bus.c