Browse files

bnx2: Clean up remaining iounmap

commit c0357e9 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: Neil Horman <>
CC: Michael Chan <>
CC: "David S. Miller" <>
Acked-by: Michael Chan <>
Signed-off-by: David S. Miller <>
  • Loading branch information...
1 parent b629820 commit 64f605c77408ad3aaff025e849d2e42cad9687e3 Neil Horman committed with davem330 Sep 26, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 drivers/net/ethernet/broadcom/bnx2.c
2 drivers/net/ethernet/broadcom/bnx2.c
@@ -8564,7 +8564,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
return 0;
- iounmap(bp->regview);
+ pci_iounmap(pdev, bp->regview);
pci_set_drvdata(pdev, NULL);

0 comments on commit 64f605c

Please sign in to comment.