These checks against BUSY aren't needed: the newbus layer does this

already with the appropriate locks held...  There's no need to do it
here, so just delete the checks.
This commit is contained in:
Warner Losh 2009-09-05 08:38:25 +00:00
parent f6a4f4b521
commit 520998911a
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=196858

View File

@ -225,11 +225,7 @@ rp_pcidetach(device_t dev)
{
CONTROLLER_t *ctlp;
if (device_get_state(dev) == DS_BUSY)
return (EBUSY);
ctlp = device_get_softc(dev);
rp_pcireleaseresource(ctlp);
return (0);
@ -240,11 +236,7 @@ rp_pcishutdown(device_t dev)
{
CONTROLLER_t *ctlp;
if (device_get_state(dev) == DS_BUSY)
return (EBUSY);
ctlp = device_get_softc(dev);
rp_pcireleaseresource(ctlp);
return (0);