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

Commit 3646f0e5 authored by Stephen Hemminger's avatar Stephen Hemminger Committed by Bjorn Helgaas
Browse files

netdev: make pci_error_handlers const

parent 49453028
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2685,7 +2685,7 @@ static void atl1c_io_resume(struct pci_dev *pdev)
	netif_device_attach(netdev);
}

static struct pci_error_handlers atl1c_err_handler = {
static const struct pci_error_handlers atl1c_err_handler = {
	.error_detected = atl1c_io_error_detected,
	.slot_reset = atl1c_io_slot_reset,
	.resume = atl1c_io_resume,
+1 −1
Original line number Diff line number Diff line
@@ -2489,7 +2489,7 @@ static void atl1e_io_resume(struct pci_dev *pdev)
	netif_device_attach(netdev);
}

static struct pci_error_handlers atl1e_err_handler = {
static const struct pci_error_handlers atl1e_err_handler = {
	.error_detected = atl1e_io_error_detected,
	.slot_reset = atl1e_io_slot_reset,
	.resume = atl1e_io_resume,
+1 −1
Original line number Diff line number Diff line
@@ -8742,7 +8742,7 @@ static void bnx2_io_resume(struct pci_dev *pdev)
	rtnl_unlock();
}

static struct pci_error_handlers bnx2_err_handler = {
static const struct pci_error_handlers bnx2_err_handler = {
	.error_detected	= bnx2_io_error_detected,
	.slot_reset	= bnx2_io_slot_reset,
	.resume		= bnx2_io_resume,
+1 −1
Original line number Diff line number Diff line
@@ -12171,7 +12171,7 @@ static void bnx2x_io_resume(struct pci_dev *pdev)
	rtnl_unlock();
}

static struct pci_error_handlers bnx2x_err_handler = {
static const struct pci_error_handlers bnx2x_err_handler = {
	.error_detected = bnx2x_io_error_detected,
	.slot_reset     = bnx2x_io_slot_reset,
	.resume         = bnx2x_io_resume,
+1 −1
Original line number Diff line number Diff line
@@ -16397,7 +16397,7 @@ done:
	rtnl_unlock();
}

static struct pci_error_handlers tg3_err_handler = {
static const struct pci_error_handlers tg3_err_handler = {
	.error_detected	= tg3_io_error_detected,
	.slot_reset	= tg3_io_slot_reset,
	.resume		= tg3_io_resume
Loading