mirror of
https://github.com/freebsd/freebsd-src
synced 2024-10-05 08:00:30 +00:00
Call bus_set_resource() to set the ioport resource.
This commit is contained in:
parent
c90aa1d19e
commit
a92b303976
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104217
|
@ -914,6 +914,8 @@ apm_probe(device_t dev)
|
|||
if ((vmf.vmf_cx & APM_32BIT_SUPPORT) == 0)
|
||||
return ENXIO;
|
||||
rid = 0;
|
||||
bus_set_resource(dev, SYS_RES_IOPORT, rid,
|
||||
APM_NECSMM_PORT, APM_NECSMM_PORTSZ);
|
||||
sc->sc_res = bus_alloc_resource(dev, SYS_RES_IOPORT, &rid,
|
||||
APM_NECSMM_PORT, ~0, APM_NECSMM_PORTSZ, RF_ACTIVE);
|
||||
if (sc->sc_res == NULL) {
|
||||
|
|
Loading…
Reference in a new issue