Use correct offset into register window.

Noticed by: 	Manfred Antar <mantar@pacbell.net>
This commit is contained in:
Matthew N. Dodd 2000-04-07 07:29:31 +00:00
parent bfae5e3a16
commit 833d4d91bc

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;