Call bus_set_resource() to set the ioport resource.

This commit is contained in:
Yoshihiro Takahashi 2002-09-30 16:41:47 +00:00
parent c90aa1d19e
commit a92b303976
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=104217

View file

@ -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) {