diff options
author | Michael Chan <mchan@broadcom.com> | 2012-12-11 21:24:20 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-12-11 21:28:25 -0500 |
commit | fda4d85d6124134dd7c72d6559bd275732eb39b9 (patch) | |
tree | 6c2052991ca7d525cb53a46e3eba04e579711012 /drivers/net | |
parent | d4bca3d7fec52e775a3f5a8f9ba2efb354450664 (diff) |
bnx2: Fix accidental reversions.
Commit 4ce45e02469c382699f4c5f6df727aea9dd2e1ca
"bnx2: Add BNX2 prefix to CHIP ID and name macros"
accidentally reverted 2 commits to use pci_ioumap() and to make
pci_error_handlers const. This fixes those mistakes.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index c16526d3046f..a1adfaf87f49 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c | |||
@@ -8572,7 +8572,7 @@ bnx2_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) | |||
8572 | return 0; | 8572 | return 0; |
8573 | 8573 | ||
8574 | error: | 8574 | error: |
8575 | iounmap(bp->regview); | 8575 | pci_iounmap(pdev, bp->regview); |
8576 | pci_release_regions(pdev); | 8576 | pci_release_regions(pdev); |
8577 | pci_disable_device(pdev); | 8577 | pci_disable_device(pdev); |
8578 | pci_set_drvdata(pdev, NULL); | 8578 | pci_set_drvdata(pdev, NULL); |
@@ -8750,7 +8750,7 @@ static void bnx2_io_resume(struct pci_dev *pdev) | |||
8750 | rtnl_unlock(); | 8750 | rtnl_unlock(); |
8751 | } | 8751 | } |
8752 | 8752 | ||
8753 | static struct pci_error_handlers bnx2_err_handler = { | 8753 | static const struct pci_error_handlers bnx2_err_handler = { |
8754 | .error_detected = bnx2_io_error_detected, | 8754 | .error_detected = bnx2_io_error_detected, |
8755 | .slot_reset = bnx2_io_slot_reset, | 8755 | .slot_reset = bnx2_io_slot_reset, |
8756 | .resume = bnx2_io_resume, | 8756 | .resume = bnx2_io_resume, |