ti: ethernet: davinci: Fix cast to int warnings
authorFlorian Fainelli <f.fainelli@gmail.com>
Mon, 21 May 2018 18:45:55 +0000 (11:45 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 21 May 2018 20:17:10 +0000 (16:17 -0400)
commitc79c3850440c1535b845e96e7e5ff0139ba479e6
treeecdcab0ede56b743ca4a6b20ad6545bb1cf0da3c
parent5a04e8f81a4f55ce1c2b7b525744a187c99ba302
ti: ethernet: davinci: Fix cast to int warnings

Now that we can compile test this driver on 64-bit hosts, we get some
warnings about how a pointer/address is written/read to/from a register
(sw_token). Fix this by doing the appropriate conversions, we cannot
possibly have the driver work on 64-bit hosts the way the tokens are
managed though, since the registers being written to a 32-bit only.

Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/ti/davinci_cpdma.c