From: Chuanhong Guo Date: Mon, 13 Apr 2020 03:32:50 +0000 (+0800) Subject: ramips: ralink-eth: fix leftover dma dev argument X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=4d06229242f27baa5566cc788f6987b470505d53;p=openwrt%2Fstaging%2Faparcar.git 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 --- 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);