ramips: ralink-eth: fix leftover dma dev argument
authorChuanhong Guo <gch981213@gmail.com>
Mon, 13 Apr 2020 03:32:50 +0000 (11:32 +0800)
committerChuanhong Guo <gch981213@gmail.com>
Mon, 13 Apr 2020 03:32:50 +0000 (11:32 +0800)
Fixes: 05dee5833a ("ramips: ralink-eth: fix device struct passed to dma functions")
Signed-off-by: Chuanhong Guo <gch981213@gmail.com>
target/linux/ramips/files/drivers/net/ethernet/ralink/mtk_eth_soc.c

index 7f09bb10de8940f3713ede4f4ee8d77770672146..7191a7a382bfc4f0a8f4e2b52175a2e92363bd9c 100644 (file)
@@ -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);