diff options
Diffstat (limited to 'drivers/pci/pcie')
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv.c | 2 | ||||
-rw-r--r-- | drivers/pci/pcie/aer/aerdrv_core.c | 8 | ||||
-rw-r--r-- | drivers/pci/pcie/portdrv_pci.c | 10 |
3 files changed, 10 insertions, 10 deletions
diff --git a/drivers/pci/pcie/aer/aerdrv.c b/drivers/pci/pcie/aer/aerdrv.c index c78778fc0cba..030cf12d5468 100644 --- a/drivers/pci/pcie/aer/aerdrv.c +++ b/drivers/pci/pcie/aer/aerdrv.c | |||
@@ -48,7 +48,7 @@ static pci_ers_result_t aer_error_detected(struct pci_dev *dev, | |||
48 | static void aer_error_resume(struct pci_dev *dev); | 48 | static void aer_error_resume(struct pci_dev *dev); |
49 | static pci_ers_result_t aer_root_reset(struct pci_dev *dev); | 49 | static pci_ers_result_t aer_root_reset(struct pci_dev *dev); |
50 | 50 | ||
51 | static struct pci_error_handlers aer_error_handlers = { | 51 | static const struct pci_error_handlers aer_error_handlers = { |
52 | .error_detected = aer_error_detected, | 52 | .error_detected = aer_error_detected, |
53 | .resume = aer_error_resume, | 53 | .resume = aer_error_resume, |
54 | }; | 54 | }; |
diff --git a/drivers/pci/pcie/aer/aerdrv_core.c b/drivers/pci/pcie/aer/aerdrv_core.c index cefc0ddcacf6..cd46d74ec806 100644 --- a/drivers/pci/pcie/aer/aerdrv_core.c +++ b/drivers/pci/pcie/aer/aerdrv_core.c | |||
@@ -209,7 +209,7 @@ static bool find_source_device(struct pci_dev *parent, | |||
209 | static int report_error_detected(struct pci_dev *dev, void *data) | 209 | static int report_error_detected(struct pci_dev *dev, void *data) |
210 | { | 210 | { |
211 | pci_ers_result_t vote; | 211 | pci_ers_result_t vote; |
212 | struct pci_error_handlers *err_handler; | 212 | const struct pci_error_handlers *err_handler; |
213 | struct aer_broadcast_data *result_data; | 213 | struct aer_broadcast_data *result_data; |
214 | result_data = (struct aer_broadcast_data *) data; | 214 | result_data = (struct aer_broadcast_data *) data; |
215 | 215 | ||
@@ -243,7 +243,7 @@ static int report_error_detected(struct pci_dev *dev, void *data) | |||
243 | static int report_mmio_enabled(struct pci_dev *dev, void *data) | 243 | static int report_mmio_enabled(struct pci_dev *dev, void *data) |
244 | { | 244 | { |
245 | pci_ers_result_t vote; | 245 | pci_ers_result_t vote; |
246 | struct pci_error_handlers *err_handler; | 246 | const struct pci_error_handlers *err_handler; |
247 | struct aer_broadcast_data *result_data; | 247 | struct aer_broadcast_data *result_data; |
248 | result_data = (struct aer_broadcast_data *) data; | 248 | result_data = (struct aer_broadcast_data *) data; |
249 | 249 | ||
@@ -261,7 +261,7 @@ static int report_mmio_enabled(struct pci_dev *dev, void *data) | |||
261 | static int report_slot_reset(struct pci_dev *dev, void *data) | 261 | static int report_slot_reset(struct pci_dev *dev, void *data) |
262 | { | 262 | { |
263 | pci_ers_result_t vote; | 263 | pci_ers_result_t vote; |
264 | struct pci_error_handlers *err_handler; | 264 | const struct pci_error_handlers *err_handler; |
265 | struct aer_broadcast_data *result_data; | 265 | struct aer_broadcast_data *result_data; |
266 | result_data = (struct aer_broadcast_data *) data; | 266 | result_data = (struct aer_broadcast_data *) data; |
267 | 267 | ||
@@ -278,7 +278,7 @@ static int report_slot_reset(struct pci_dev *dev, void *data) | |||
278 | 278 | ||
279 | static int report_resume(struct pci_dev *dev, void *data) | 279 | static int report_resume(struct pci_dev *dev, void *data) |
280 | { | 280 | { |
281 | struct pci_error_handlers *err_handler; | 281 | const struct pci_error_handlers *err_handler; |
282 | 282 | ||
283 | dev->error_state = pci_channel_io_normal; | 283 | dev->error_state = pci_channel_io_normal; |
284 | 284 | ||
diff --git a/drivers/pci/pcie/portdrv_pci.c b/drivers/pci/pcie/portdrv_pci.c index 2360330e48f1..ca10911ee0df 100644 --- a/drivers/pci/pcie/portdrv_pci.c +++ b/drivers/pci/pcie/portdrv_pci.c | |||
@@ -364,11 +364,11 @@ static const struct pci_device_id port_pci_ids[] = { { | |||
364 | }; | 364 | }; |
365 | MODULE_DEVICE_TABLE(pci, port_pci_ids); | 365 | MODULE_DEVICE_TABLE(pci, port_pci_ids); |
366 | 366 | ||
367 | static struct pci_error_handlers pcie_portdrv_err_handler = { | 367 | static const struct pci_error_handlers pcie_portdrv_err_handler = { |
368 | .error_detected = pcie_portdrv_error_detected, | 368 | .error_detected = pcie_portdrv_error_detected, |
369 | .mmio_enabled = pcie_portdrv_mmio_enabled, | 369 | .mmio_enabled = pcie_portdrv_mmio_enabled, |
370 | .slot_reset = pcie_portdrv_slot_reset, | 370 | .slot_reset = pcie_portdrv_slot_reset, |
371 | .resume = pcie_portdrv_err_resume, | 371 | .resume = pcie_portdrv_err_resume, |
372 | }; | 372 | }; |
373 | 373 | ||
374 | static struct pci_driver pcie_portdriver = { | 374 | static struct pci_driver pcie_portdriver = { |