zorro: ZTWO_VADDR() should return "void __iomem *"

ZTWO_VADDR() converts from physical to virtual I/O addresses, so it should
return "void __iomem *" instead of "unsigned long".

This allows to drop several casts, but requires adding a few casts to
accomodate legacy driver frameworks that store "unsigned long" I/O
addresses.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
This commit is contained in:
Geert Uytterhoeven
2011-01-09 11:03:43 +01:00
parent 83b7bce3d3
commit 6112ea0862
17 changed files with 22 additions and 22 deletions
+1 -1
View File
@@ -198,7 +198,7 @@ fail_base2:
continue;
}
}
buddha_board = ZTWO_VADDR(board);
buddha_board = (unsigned long)ZTWO_VADDR(board);
/* write to BUDDHA_IRQ_MR to enable the board IRQ */
/* X-Surf doesn't have this. IRQs are always on */