Skip to content

Commit 33646d7

Browse files
John Linndavem330
authored andcommitted
net: ll_temac: remove virt_to_bus call
The virt_to_bus call should not be used any longer as it's considered illegal. The driver has the physical address of the buffer in the descriptor such that it's not necessary anyway. Signed-off-by: John Linn <john.linn@xilinx.com> Acked-by: Grant Likely <grant.likely@secretlab.ca> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent ed85b56 commit 33646d7

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

‎drivers/net/ll_temac_main.c‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -612,7 +612,6 @@ static void ll_temac_recv(struct net_device *ndev)
612612
struct cdmac_bd *cur_p;
613613
dma_addr_t tail_p;
614614
int length;
615-
unsigned long skb_vaddr;
616615
unsigned long flags;
617616

618617
spin_lock_irqsave(&lp->rx_lock, flags);
@@ -626,8 +625,7 @@ static void ll_temac_recv(struct net_device *ndev)
626625
skb = lp->rx_skb[lp->rx_bd_ci];
627626
length = cur_p->app4 & 0x3FFF;
628627

629-
skb_vaddr = virt_to_bus(skb->data);
630-
dma_unmap_single(ndev->dev.parent, skb_vaddr, length,
628+
dma_unmap_single(ndev->dev.parent, cur_p->phys, length,
631629
DMA_FROM_DEVICE);
632630

633631
skb_put(skb, length);

0 commit comments

Comments
 (0)