]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
net: axienet: Clean up device used for DMA calls
authorRobert Hancock <robert.hancock@calian.com>
Sat, 5 Mar 2022 02:24:38 +0000 (20:24 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 17 Oct 2024 13:11:07 +0000 (15:11 +0200)
commit9384262ad8103c6d2de2844c6df5a005eefd98cc
tree7c45b946451a139fba3c92602defa5c3883fcd2a
parent043dc922cd47a9a2ffe8279c0e016e246a6c2919
net: axienet: Clean up device used for DMA calls

[ Upstream commit 17882fd4256721451457ee57532bbae0cd5cacfe ]

Instead of using lp->ndev.parent to find the correct device to use for
DMA API calls, just use the dev attribute in the device structure.

Signed-off-by: Robert Hancock <robert.hancock@calian.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Stable-dep-of: 5a6caa2cfabb ("net: xilinx: axienet: Fix packet counting")
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/ethernet/xilinx/xilinx_axienet_main.c