diff options
Diffstat (limited to 'drivers/tty')
-rw-r--r-- | drivers/tty/serial/8250/8250_pci.c | 2 | ||||
-rw-r--r-- | drivers/tty/serial/jsm/jsm_driver.c | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/drivers/tty/serial/8250/8250_pci.c b/drivers/tty/serial/8250/8250_pci.c index 28e7c7cce893..452278efef29 100644 --- a/drivers/tty/serial/8250/8250_pci.c +++ b/drivers/tty/serial/8250/8250_pci.c | |||
@@ -4236,7 +4236,7 @@ static void serial8250_io_resume(struct pci_dev *dev) | |||
4236 | pciserial_resume_ports(priv); | 4236 | pciserial_resume_ports(priv); |
4237 | } | 4237 | } |
4238 | 4238 | ||
4239 | static struct pci_error_handlers serial8250_err_handler = { | 4239 | static const struct pci_error_handlers serial8250_err_handler = { |
4240 | .error_detected = serial8250_io_error_detected, | 4240 | .error_detected = serial8250_io_error_detected, |
4241 | .slot_reset = serial8250_io_slot_reset, | 4241 | .slot_reset = serial8250_io_slot_reset, |
4242 | .resume = serial8250_io_resume, | 4242 | .resume = serial8250_io_resume, |
diff --git a/drivers/tty/serial/jsm/jsm_driver.c b/drivers/tty/serial/jsm/jsm_driver.c index 7545fe1b9925..5ab3c3b595e4 100644 --- a/drivers/tty/serial/jsm/jsm_driver.c +++ b/drivers/tty/serial/jsm/jsm_driver.c | |||
@@ -54,7 +54,7 @@ static pci_ers_result_t jsm_io_error_detected(struct pci_dev *pdev, | |||
54 | static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev); | 54 | static pci_ers_result_t jsm_io_slot_reset(struct pci_dev *pdev); |
55 | static void jsm_io_resume(struct pci_dev *pdev); | 55 | static void jsm_io_resume(struct pci_dev *pdev); |
56 | 56 | ||
57 | static struct pci_error_handlers jsm_err_handler = { | 57 | static const struct pci_error_handlers jsm_err_handler = { |
58 | .error_detected = jsm_io_error_detected, | 58 | .error_detected = jsm_io_error_detected, |
59 | .slot_reset = jsm_io_slot_reset, | 59 | .slot_reset = jsm_io_slot_reset, |
60 | .resume = jsm_io_resume, | 60 | .resume = jsm_io_resume, |