mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-28 10:41:38 -04:00
make drivers with pci error handlers const
Covers the rest of the uses of pci error handler. Signed-off-by: Stephen Hemminger <[email protected]> Signed-off-by: Bjorn Helgaas <[email protected]>
This commit is contained in:
parent
a55b2d21e8
commit
1d3520357d
7 changed files with 7 additions and 7 deletions
|
|
@ -4236,7 +4236,7 @@ static void serial8250_io_resume(struct pci_dev *dev)
|
|||
pciserial_resume_ports(priv);
|
||||
}
|
||||
|
||||
static struct pci_error_handlers serial8250_err_handler = {
|
||||
static const struct pci_error_handlers serial8250_err_handler = {
|
||||
.error_detected = serial8250_io_error_detected,
|
||||
.slot_reset = serial8250_io_slot_reset,
|
||||
.resume = serial8250_io_resume,
|
||||
|
|
|
|||
|
|
@ -54,7 +54,7 @@ static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev,
|
|||
static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev);
|
||||
static void jsm_io_resume(struct pci_dev *pdev);
|
||||
|
||||
static struct pci_error_handlers jsm_err_handler = {
|
||||
static const struct pci_error_handlers jsm_err_handler = {
|
||||
.error_detected = jsm_io_error_detected,
|
||||
.slot_reset = jsm_io_slot_reset,
|
||||
.resume = jsm_io_resume,
|
||||
|
|
|
|||
Loading…
Reference in a new issue