summaryrefslogtreecommitdiffstats
path: root/sys/dev/rp
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2009-09-05 08:38:25 +0000
committerimp <imp@FreeBSD.org>2009-09-05 08:38:25 +0000
commitb620cd133b1e05adf2a40923154dcb2e712ade46 (patch)
tree7ad6843adf98a74a89980c4c92648a356776ea32 /sys/dev/rp
parent6caec3bcfe39abfa877f87889e41a8dae18e3a99 (diff)
downloadFreeBSD-src-b620cd133b1e05adf2a40923154dcb2e712ade46.zip
FreeBSD-src-b620cd133b1e05adf2a40923154dcb2e712ade46.tar.gz
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.
Diffstat (limited to 'sys/dev/rp')
-rw-r--r--sys/dev/rp/rp_pci.c8
1 files changed, 0 insertions, 8 deletions
diff --git a/sys/dev/rp/rp_pci.c b/sys/dev/rp/rp_pci.c
index e8a1c68..cbd5516 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);
OpenPOWER on IntegriCloud