]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: Utilize correct struct device for all DMA operations
authorFlorian Fainelli <f.fainelli@gmail.com>
Thu, 1 Dec 2016 17:45:45 +0000 (09:45 -0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 2 Dec 2016 18:53:34 +0000 (13:53 -0500)
commitecc54e971c43c5755da444e06150a73f4ab1f914
tree1399a8df3d0b719518a28edcac5c0b53d33859e6
parent2fdabb7e7d75bda058dd999fa0a0ec867449b49e
net: bcmgenet: Utilize correct struct device for all DMA operations

__bcmgenet_tx_reclaim() and bcmgenet_free_rx_buffers() are not using the
same struct device during unmap that was used for the map operation,
which makes DMA-API debugging warn about it. Fix this by always using
&priv->pdev->dev throughout the driver, using an identical device
reference for all map/unmap calls.

Fixes: 83c070ed8c89 ("net: bcmgenet: add main driver file")
Signed-off-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c