diff options
| author | Søren Schmidt <sos@FreeBSD.org> | 2005-04-11 20:50:14 +0000 |
|---|---|---|
| committer | Søren Schmidt <sos@FreeBSD.org> | 2005-04-11 20:50:14 +0000 |
| commit | 308f942ec9d864b8546c5177faf5f82c659c583b (patch) | |
| tree | b1ea8ed1c501f84c1c9f5945a8c3decb95f8d39d /sys/dev/ata | |
| parent | 50fc814789feded10b0568ed60f0346eb349ac46 (diff) | |
Notes
Diffstat (limited to 'sys/dev/ata')
| -rw-r--r-- | sys/dev/ata/ata-chipset.c | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/ata/ata-chipset.c b/sys/dev/ata/ata-chipset.c index a242c283827b..323d42a4ebd8 100644 --- a/sys/dev/ata/ata-chipset.c +++ b/sys/dev/ata/ata-chipset.c @@ -1483,8 +1483,9 @@ ata_nvidia_allocate(device_t dev) else ctlr->r_type2 = SYS_RES_MEMORY; ctlr->r_rid2 = PCIR_BAR(5); - if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, - &ctlr->r_rid2, RF_ACTIVE))) + if (!(ctlr->r_res2 = bus_alloc_resource_any(device_get_parent(dev), + ctlr->r_type2, &ctlr->r_rid2, + RF_ACTIVE))) return ENXIO; /* setup the usual register normal pci style */ @@ -3183,8 +3184,9 @@ ata_sis_allocate(device_t dev) ctlr->r_type2 = SYS_RES_IOPORT; ctlr->r_rid2 = PCIR_BAR(5); - if (!(ctlr->r_res2 = bus_alloc_resource_any(dev, ctlr->r_type2, - &ctlr->r_rid2, RF_ACTIVE))) + if (!(ctlr->r_res2 = bus_alloc_resource_any(device_get_parent(dev), + ctlr->r_type2, &ctlr->r_rid2, + RF_ACTIVE))) return ENXIO; /* setup the usual register normal pci style */ |
