]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit75867069cd8b7e3edd49d151f5a90b1c7644700c
treeecdcab0ede56b743ca4a6b20ad6545bb1cf0da3c
parentf4801d6c12cdc103188a90cea8ef01b8b0cb906f
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