Skip to content

Commit

Permalink
[SERIAL] dz: Use CKSEG1ADDR to setup mappings.
Browse files Browse the repository at this point in the history
Use physical addresses at the interface level, letting drivers remap
them as appropriate.

Signed-off-by: Maciej W. Rozycki <macro@linux-mips.org>
Signed-off-by: Ralf Baechle <ralf@linux-mips.org>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
  • Loading branch information
Ralf Baechle authored and Russell King committed Nov 12, 2005
1 parent fd8c597 commit 4667773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/serial/dz.c
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ static void __init dz_init_ports(void)

if (mips_machtype == MACH_DS23100 ||
mips_machtype == MACH_DS5100)
base = (unsigned long) KN01_DZ11_BASE;
base = CKSEG1ADDR(KN01_SLOT_BASE + KN01_DZ11);
else
base = (unsigned long) KN02_DZ11_BASE;
base = CKSEG1ADDR(KN02_SLOT_BASE + KN02_DZ11);

for (i = 0, dport = dz_ports; i < DZ_NB_PORT; i++, dport++) {
spin_lock_init(&dport->port.lock);
Expand Down

0 comments on commit 4667773

Please sign in to comment.