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:
@@ -116,8 +116,8 @@ get_z2ram( void )
|
||||
if ( test_bit( i, zorro_unused_z2ram ) )
|
||||
{
|
||||
z2_count++;
|
||||
z2ram_map[ z2ram_size++ ] =
|
||||
ZTWO_VADDR( Z2RAM_START ) + ( i << Z2RAM_CHUNKSHIFT );
|
||||
z2ram_map[z2ram_size++] = (unsigned long)ZTWO_VADDR(Z2RAM_START) +
|
||||
(i << Z2RAM_CHUNKSHIFT);
|
||||
clear_bit( i, zorro_unused_z2ram );
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user