summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authorimp <imp@FreeBSD.org>2003-06-27 03:25:43 +0000
committerimp <imp@FreeBSD.org>2003-06-27 03:25:43 +0000
commit1653f47186a0e8c9cc2b716816fbdeab1fb530ef (patch)
treeb4cfbef0f5bcde90bcb39b019b006167b0fe012e /sys/dev
parent51235c32fb2a5540b3f216dce2d70fb6b8ce899d (diff)
downloadFreeBSD-src-1653f47186a0e8c9cc2b716816fbdeab1fb530ef.zip
FreeBSD-src-1653f47186a0e8c9cc2b716816fbdeab1fb530ef.tar.gz
Remove check to see if the get resource for the second resource
succeeds. There is a difference between how OLDCARD and NEWCARD deal with their resources, and this code exposes that difference. I'm not sure which behavior is correct, and will need to look into that in more detail. However, it appears that we go ahead and allocate the right thing in both cases that I have access to (CF cards, CDROM, and external ata enclosures), so go ahead and ignore the failure to get the resource for the other rid. There's already another check to make sure that the actual allocation works correctly, and that should be sufficient to catch cases that don't work. Submitted by: wpaul and iedowse
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ata/ata-card.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/dev/ata/ata-card.c b/sys/dev/ata/ata-card.c
index 4e75c68..1f4ba3a 100644
--- a/sys/dev/ata/ata-card.c
+++ b/sys/dev/ata/ata-card.c
@@ -131,10 +131,6 @@ ata_pccard_probe(device_t dev)
start + ATA_ALTOFFSET, ATA_ALTIOSIZE);
}
}
- else {
- bus_release_resource(dev, SYS_RES_IOPORT, rid, io);
- return ENXIO;
- }
/* allocate the altport range */
rid = ATA_ALTADDR_RID;
OpenPOWER on IntegriCloud