summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_xl.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/pci/if_xl.c')
-rw-r--r--sys/pci/if_xl.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/sys/pci/if_xl.c b/sys/pci/if_xl.c
index 2077c3c..e7a11bf 100644
--- a/sys/pci/if_xl.c
+++ b/sys/pci/if_xl.c
@@ -1738,6 +1738,14 @@ fail_fres:
bus_release_resource(dev, SYS_RES_MEMORY, XL_PCI_FUNCMEM,
sc->xl_fres);
fail_res:
+ if (sc->xl_flags & XL_FLAG_USE_MMIO) {
+ rid = XL_PCI_LOMEM;
+ res = SYS_RES_MEMORY;
+ } else {
+ rid = XL_PCI_LOIO;
+ res = SYS_RES_IOPORT;
+ }
+
bus_release_resource(dev, res, rid, sc->xl_res);
fail:
XL_UNLOCK(sc);
OpenPOWER on IntegriCloud