diff options
author | Stephen Hemminger <shemminger@vyatta.com> | 2012-09-07 12:33:15 -0400 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2012-09-07 18:35:00 -0400 |
commit | 3646f0e5c97703cecfd96cdabb085e78d9b7f680 (patch) | |
tree | 93a7673401fcb092f0fd0d6e65a7572f2a4b60c2 /drivers/net/ethernet/broadcom | |
parent | 494530284f16298050ab99f54b7b12dd7d1418a1 (diff) |
netdev: make pci_error_handlers const
Signed-off-by: Stephen Hemminger <shemminger@vyatta.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/net/ethernet/broadcom')
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | 2 | ||||
-rw-r--r-- | drivers/net/ethernet/broadcom/tg3.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/ethernet/broadcom/bnx2.c b/drivers/net/ethernet/broadcom/bnx2.c index 79cebd8525ce..a0e8399793b6 100644 --- a/drivers/net/ethernet/broadcom/bnx2.c +++ b/drivers/net/ethernet/broadcom/bnx2.c | |||
@@ -8742,7 +8742,7 @@ static void bnx2_io_resume(struct pci_dev *pdev) | |||
8742 | rtnl_unlock(); | 8742 | rtnl_unlock(); |
8743 | } | 8743 | } |
8744 | 8744 | ||
8745 | static struct pci_error_handlers bnx2_err_handler = { | 8745 | static const struct pci_error_handlers bnx2_err_handler = { |
8746 | .error_detected = bnx2_io_error_detected, | 8746 | .error_detected = bnx2_io_error_detected, |
8747 | .slot_reset = bnx2_io_slot_reset, | 8747 | .slot_reset = bnx2_io_slot_reset, |
8748 | .resume = bnx2_io_resume, | 8748 | .resume = bnx2_io_resume, |
diff --git a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c index dd451c3dd83d..81e377408a4e 100644 --- a/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c +++ b/drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c | |||
@@ -12171,7 +12171,7 @@ static void bnx2x_io_resume(struct pci_dev *pdev) | |||
12171 | rtnl_unlock(); | 12171 | rtnl_unlock(); |
12172 | } | 12172 | } |
12173 | 12173 | ||
12174 | static struct pci_error_handlers bnx2x_err_handler = { | 12174 | static const struct pci_error_handlers bnx2x_err_handler = { |
12175 | .error_detected = bnx2x_io_error_detected, | 12175 | .error_detected = bnx2x_io_error_detected, |
12176 | .slot_reset = bnx2x_io_slot_reset, | 12176 | .slot_reset = bnx2x_io_slot_reset, |
12177 | .resume = bnx2x_io_resume, | 12177 | .resume = bnx2x_io_resume, |
diff --git a/drivers/net/ethernet/broadcom/tg3.c b/drivers/net/ethernet/broadcom/tg3.c index bf906c51d82a..5639b5c85c54 100644 --- a/drivers/net/ethernet/broadcom/tg3.c +++ b/drivers/net/ethernet/broadcom/tg3.c | |||
@@ -16397,7 +16397,7 @@ done: | |||
16397 | rtnl_unlock(); | 16397 | rtnl_unlock(); |
16398 | } | 16398 | } |
16399 | 16399 | ||
16400 | static struct pci_error_handlers tg3_err_handler = { | 16400 | static const struct pci_error_handlers tg3_err_handler = { |
16401 | .error_detected = tg3_io_error_detected, | 16401 | .error_detected = tg3_io_error_detected, |
16402 | .slot_reset = tg3_io_slot_reset, | 16402 | .slot_reset = tg3_io_slot_reset, |
16403 | .resume = tg3_io_resume | 16403 | .resume = tg3_io_resume |