diff options
author | imp <imp@FreeBSD.org> | 2005-03-18 05:19:50 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2005-03-18 05:19:50 +0000 |
commit | 7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c (patch) | |
tree | da2c3750864cc53bd818a0507a4f549420b82c39 /sys/dev/pccard | |
parent | 52e8c7d46a9820283781fda9233bdf609931135f (diff) | |
download | FreeBSD-src-7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c.zip FreeBSD-src-7e9a7073ef377ae41f09b4dfb21c34a4a6b3a12c.tar.gz |
Use STAILQ in preference to SLIST for the resources. Insert new resources
last in the list rather than first.
This makes the resouces print in the 4.x order rather than the 5.x order
(eg fdc0 at 0x3f0-0x3f5,0x3f7 is 4.x, but 0x3f7,0x3f0-0x3f5 is 5.x). This
also means that the pci code will once again print the resources in BAR
ascending order.
Diffstat (limited to 'sys/dev/pccard')
-rw-r--r-- | sys/dev/pccard/pccard.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sys/dev/pccard/pccard.c b/sys/dev/pccard/pccard.c index d924358..167ab8e 100644 --- a/sys/dev/pccard/pccard.c +++ b/sys/dev/pccard/pccard.c @@ -534,7 +534,7 @@ pccard_function_free(struct pccard_function *pf) return; } - SLIST_FOREACH(rle, &devi->resources, link) { + STAILQ_FOREACH(rle, &devi->resources, link) { if (rle->res) { if (rman_get_device(rle->res) != pf->sc->dev) device_printf(pf->sc->dev, |