Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 64f605c7 authored by Neil Horman's avatar Neil Horman Committed by David S. Miller
Browse files

bnx2: Clean up remaining iounmap



commit c0357e97 modified bnx2 to switch from
using ioremap/iounmap to pci_iomap/pci_iounmap.  They missed a spot in the error
path of bnx2_init_one though.  This patch just cleans that up.

Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
CC: Michael Chan <mcan@broadcom.com>
CC: "David S. Miller" <davem@davemloft.net>
Acked-by: default avatarMichael Chan <mchan@broadcom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent b629820d
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8564,7 +8564,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
	return 0;

error:
	iounmap(bp->regview);
	pci_iounmap(pdev, bp->regview);
	pci_release_regions(pdev);
	pci_disable_device(pdev);
	pci_set_drvdata(pdev, NULL);