Use correct offset into register window.
Noticed by: Manfred Antar <mantar@pacbell.net>
This commit is contained in:
parent
bfae5e3a16
commit
833d4d91bc
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user