Initialize iobase, bsh and bst.

This commit is contained in:
Yoshihiro Takahashi 2003-09-23 09:55:21 +00:00
parent 82df4f3134
commit b8759afc2b
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=120380

View File

@ -325,6 +325,10 @@ uart_bus_attach(device_t dev)
if (sc->sc_rres == NULL)
return (ENXIO);
sc->sc_bas.iobase = rman_get_start(sc->sc_rres);
sc->sc_bas.bsh = rman_get_bushandle(sc->sc_rres);
sc->sc_bas.bst = rman_get_bustag(sc->sc_rres);
sc->sc_irid = 0;
sc->sc_ires = bus_alloc_resource(dev, SYS_RES_IRQ, &sc->sc_irid,
0, ~0, 1, RF_ACTIVE);