i825xx: znet: fix compiler warnings when building a 64-bit kernel
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 14 Sep 2012 00:33:48 +0000 (00:33 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 19 Sep 2012 19:45:23 +0000 (15:45 -0400)
commit1d3ff76759b70e201e6b379c37ac106c487ff506
tree704f8e1ff4375c3964555f7bfab69a7fe5b99fab
parent6b78f16e4bdde3936b11690bdb970be423e07a07
i825xx: znet: fix compiler warnings when building a 64-bit kernel

When building 64-bit kernel with this driver we get following warnings from
the compiler:

drivers/net/ethernet/i825xx/znet.c: In function â€˜hardware_init’:
drivers/net/ethernet/i825xx/znet.c:863:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]
drivers/net/ethernet/i825xx/znet.c:870:29: warning: cast from pointer to integer of different size [-Wpointer-to-int-cast]

Fix these by calling isa_virt_to_bus() before passing the pointers to
set_dma_addr().

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/i825xx/znet.c