net: ibm: emac: mal: add dcr_unmap to _remove
BugLink: https://bugs.launchpad.net/bugs/2097301
[ Upstream commit 080ddc22f3b0a58500f87e8e865aabbf96495eea ]
It's done in probe so it should be undone here.
Fixes: 1d3bb99648 ("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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Manuel Diewald <manuel.diewald@canonical.com>
Signed-off-by: Koichiro Den <koichiro.den@canonical.com>
This commit is contained in:
committed by
Mehmet Basaran
parent
14a846030b
commit
a3b211e8bb
@@ -734,6 +734,8 @@ static void mal_remove(struct platform_device *ofdev)
|
||||
|
||||
mal_reset(mal);
|
||||
|
||||
dcr_unmap(mal->dcr_host, 0x100);
|
||||
|
||||
dma_free_coherent(&ofdev->dev,
|
||||
sizeof(struct mal_descriptor) *
|
||||
(NUM_TX_BUFF * mal->num_tx_chans +
|
||||
|
||||
Reference in New Issue
Block a user