net: ethernet: mediatek: fix runtime warning raised by inconsistent struct device...
authorsean.wang@mediatek.com <sean.wang@mediatek.com>
Tue, 16 Aug 2016 05:55:15 +0000 (13:55 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 16 Aug 2016 06:02:44 +0000 (23:02 -0700)
commit55a4e778191cfcf675aa1f9716edb71a3014d5fb
tree08cd98a5025a8072d082e26ba02a2e74452d7f03
parentb2025c7cc92d5bfc8c5ce756c8d8a6f57c776fbd
net: ethernet: mediatek: fix runtime warning raised by inconsistent struct device pointers passed to DMA API

Runtime warning occurs if DMA-API debug feature is enabled that would be
raised by pointers passed to DMA API as arguments to inconsistent struct
device objects, so that the patch makes them usage aligned between DMA
operations such as dma_map_*() and dma_unmap_*() to eliminate the warning.

Signed-off-by: Sean Wang <sean.wang@mediatek.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mediatek/mtk_eth_soc.c