mirror of
https://github.com/openwrt/openwrt.git
synced 2025-01-31 16:35:44 +00:00
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>
This commit is contained in:
parent
0aa2ecf5b2
commit
4d06229242
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user