Skip to content

Commit 080ddc2

Browse files
nehebkuba-moo
authored andcommitted
net: ibm: emac: mal: add dcr_unmap to _remove
It's done in probe so it should be undone here. Fixes: 1d3bb99 ("Device tree aware EMAC driver") Signed-off-by: Rosen Penev <[email protected]> Reviewed-by: Breno Leitao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Jakub Kicinski <[email protected]>
1 parent 70a0da8 commit 080ddc2

File tree

1 file changed

+2
-0
lines changed
  • drivers/net/ethernet/ibm/emac

1 file changed

+2
-0
lines changed

drivers/net/ethernet/ibm/emac/mal.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -742,6 +742,8 @@ static void mal_remove(struct platform_device *ofdev)
742742

743743
free_netdev(mal->dummy_dev);
744744

745+
dcr_unmap(mal->dcr_host, 0x100);
746+
745747
dma_free_coherent(&ofdev->dev,
746748
sizeof(struct mal_descriptor) *
747749
(NUM_TX_BUFF * mal->num_tx_chans +

0 commit comments

Comments
 (0)