diff options
Diffstat (limited to 'sys/arch/sparc/dev/amd7930.c')
-rw-r--r-- | sys/arch/sparc/dev/amd7930.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/sys/arch/sparc/dev/amd7930.c b/sys/arch/sparc/dev/amd7930.c index 0702e095162..c7a133e3eaf 100644 --- a/sys/arch/sparc/dev/amd7930.c +++ b/sys/arch/sparc/dev/amd7930.c @@ -301,9 +301,8 @@ amd9730attach(parent, self, args) } pri = ra->ra_intr[0].int_pri; printf(" pri %d, softpri %d\n", pri, PIL_AUSOFT); - amd = (volatile struct amd7930 *)(ra->ra_vaddr ? - ra->ra_vaddr : mapiodev(ra->ra_paddr, sizeof (*amd), - ca->ca_bustype)); + amd = (volatile struct amd7930 *)(ra->ra_vaddr ? ra->ra_vaddr : + mapiodev(ra->ra_reg, 0, sizeof (*amd), ca->ca_bustype)); sc->sc_map.mr_mmr1 = AMD_MMR1_GX | AMD_MMR1_GER | AMD_MMR1_GR | AMD_MMR1_STG; |