From 520998911a15d9d0f44770074ea88af4a13e1c9e Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Sat, 5 Sep 2009 08:38:25 +0000 Subject: [PATCH] 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. --- sys/dev/rp/rp_pci.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/sys/dev/rp/rp_pci.c b/sys/dev/rp/rp_pci.c index e8a1c68cf5a1..cbd55167801d 100644 --- a/sys/dev/rp/rp_pci.c +++ b/sys/dev/rp/rp_pci.c @@ -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);