Skip to content

Commit

Permalink
net: ibm: emac: mal: add dcr_unmap to _remove
Browse files Browse the repository at this point in the history
It's done in probe so it should be undone here.

Fixes: 1d3bb99 ("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>
  • Loading branch information
Rosen Penev authored and Jakub Kicinski committed Oct 10, 2024
1 parent 70a0da8 commit 080ddc2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/net/ethernet/ibm/emac/mal.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 +
Expand Down

0 comments on commit 080ddc2

Please sign in to comment.