Use correct offset into register window.
Noticed by: Manfred Antar <mantar@pacbell.net>
This commit is contained in:
parent
bcaa5ea35b
commit
367c61d5d3
@ -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