aboutsummaryrefslogtreecommitdiffstats
path: root/target/linux
diff options
context:
space:
mode:
authorChuanhong Guo <gch981213@gmail.com>2020-04-13 11:32:50 +0800
committerChuanhong Guo <gch981213@gmail.com>2020-04-13 11:32:50 +0800
commit4d06229242f27baa5566cc788f6987b470505d53 (patch)
treea58e8767f989c2a51168d31550e1db6bea4e86f7 /target/linux
parent0aa2ecf5b223b838678b61bd2ded9f29903f17b1 (diff)
downloadupstream-4d06229242f27baa5566cc788f6987b470505d53.tar.gz
upstream-4d06229242f27baa5566cc788f6987b470505d53.tar.bz2
upstream-4d06229242f27baa5566cc788f6987b470505d53.zip
ramips: ralink-eth: fix leftover dma dev argument
Fixes: 05dee5833a ("ramips: ralink-eth: fix device struct passed to dma functions") Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
Diffstat (limited to 'target/linux')
-rw-r--r--target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
index 7f09bb10de..7191a7a382 100644
--- a/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
+++ b/target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c
@@ -230,7 +230,7 @@ static void fe_clean_rx(struct fe_priv *priv)
for (i = 0; i < ring->rx_ring_size; i++)
if (ring->rx_data[i]) {
if (ring->rx_dma && ring->rx_dma[i].rxd1)
- dma_unmap_single(&priv->netdev->dev,
+ dma_unmap_single(priv->dev,
ring->rx_dma[i].rxd1,
ring->rx_buf_size,
DMA_FROM_DEVICE);