]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit73e875ea972f8d7eed23d503765df7c9da971246
tree08cd98a5025a8072d082e26ba02a2e74452d7f03
parent7ddc5122cf0f35f3724cf0eadc48086f1672f45d
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