Use correct offset into register window.

Noticed by: 	Manfred Antar <mantar@pacbell.net>
This commit is contained in:
mdodd 2000-04-07 07:29:31 +00:00
parent bcaa5ea35b
commit 367c61d5d3

View File

@ -126,7 +126,8 @@ dpt_pci_attach (device_t dev)
goto bad;
}
dpt = dpt_alloc(dev, rman_get_bustag(io), rman_get_bushandle(io));
/* Device registers are offset 0x10 into the register window. FEH */
dpt = dpt_alloc(dev, rman_get_bustag(io), rman_get_bushandle(io) + 0x10);
if (dpt == NULL) {
error = ENXIO;
goto bad;