summaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet
diff options
context:
space:
mode:
authorRosen Penev <rosenp@gmail.com>2024-10-09 01:30:50 +0200
committerJakub Kicinski <kuba@kernel.org>2024-10-10 04:27:09 +0200
commit080ddc22f3b0a58500f87e8e865aabbf96495eea (patch)
treed5e05c353045659332482e965964344fb79b69d5 /drivers/net/ethernet
parentnet: ftgmac100: fixed not check status from fixed phy (diff)
downloadlinux-080ddc22f3b0a58500f87e8e865aabbf96495eea.tar.xz
linux-080ddc22f3b0a58500f87e8e865aabbf96495eea.zip
net: ibm: emac: mal: add dcr_unmap to _remove
It's done in probe so it should be undone here. Fixes: 1d3bb996481e ("Device tree aware EMAC driver") Signed-off-by: Rosen Penev <rosenp@gmail.com> Reviewed-by: Breno Leitao <leitao@debian.org> Link: https://patch.msgid.link/20241008233050.9422-1-rosenp@gmail.com Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net/ethernet')
-rw-r--r--drivers/net/ethernet/ibm/emac/mal.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/net/ethernet/ibm/emac/mal.c b/drivers/net/ethernet/ibm/emac/mal.c
index 0c5e22d14372..99d5f83f7c60 100644
--- a/drivers/net/ethernet/ibm/emac/mal.c
+++ b/drivers/net/ethernet/ibm/emac/mal.c
@@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev)
free_netdev(mal->dummy_dev);
+ dcr_unmap(mal->dcr_host, 0x100);
+
dma_free_coherent(&ofdev->dev,
sizeof(struct mal_descriptor) *
(NUM_TX_BUFF * mal->num_tx_chans +