svn commit: r196858 - head/sys/dev/rp
Warner Losh
imp at FreeBSD.org
Sat Sep 5 08:38:25 UTC 2009
Author: imp
Date: Sat Sep 5 08:38:25 2009
New Revision: 196858
URL: http://svn.freebsd.org/changeset/base/196858
Log:
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.
Modified:
head/sys/dev/rp/rp_pci.c
Modified: head/sys/dev/rp/rp_pci.c
==============================================================================
--- head/sys/dev/rp/rp_pci.c Sat Sep 5 08:09:35 2009 (r196857)
+++ head/sys/dev/rp/rp_pci.c Sat Sep 5 08:38:25 2009 (r196858)
@@ -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);
More information about the svn-src-head
mailing list