mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-20 15:24:25 +00:00
Fix the same silly alloc mistake for nVidia and SiS as with VIA in
the previous commit.
This commit is contained in:
parent
50fc814789
commit
308f942ec9
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=144915
|
@ -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 */
|
||||
|
|
Loading…
Reference in a new issue