summaryrefslogtreecommitdiffstats
path: root/drivers/pci/pcie/portdrv_pci.c
diff options
context:
space:
mode:
authorBjorn Helgaas <bhelgaas@google.com>2012-09-12 13:54:10 -0600
committerBjorn Helgaas <bhelgaas@google.com>2012-09-12 13:54:10 -0600
commit1959ec5f82acbdf91425b41600f119ebecb5f6a8 (patch)
treeb54bc758f10632e991a3a80a94b05f3940b6651c /drivers/pci/pcie/portdrv_pci.c
parenta63ab613ff48c593f4e9ace2d111978e35a202e4 (diff)
parent1d3520357df99baf4ad89f86268ac96cd38092d9 (diff)
downloadblackbird-op-linux-1959ec5f82acbdf91425b41600f119ebecb5f6a8.tar.gz
blackbird-op-linux-1959ec5f82acbdf91425b41600f119ebecb5f6a8.zip
Merge branch 'pci/stephen-const' into next
* pci/stephen-const: make drivers with pci error handlers const scsi: make pci error handlers const netdev: make pci_error_handlers const PCI: Make pci_error_handlers const
Diffstat (limited to 'drivers/pci/pcie/portdrv_pci.c')
-rw-r--r--drivers/pci/pcie/portdrv_pci.c10
1 files changed, 5 insertions, 5 deletions
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[] = { {
};
MODULE_DEVICE_TABLE(pci, port_pci_ids);
-static struct pci_error_handlers pcie_portdrv_err_handler = {
- .error_detected = pcie_portdrv_error_detected,
- .mmio_enabled = pcie_portdrv_mmio_enabled,
- .slot_reset = pcie_portdrv_slot_reset,
- .resume = pcie_portdrv_err_resume,
+static const struct pci_error_handlers pcie_portdrv_err_handler = {
+ .error_detected = pcie_portdrv_error_detected,
+ .mmio_enabled = pcie_portdrv_mmio_enabled,
+ .slot_reset = pcie_portdrv_slot_reset,
+ .resume = pcie_portdrv_err_resume,
};
static struct pci_driver pcie_portdriver = {
OpenPOWER on IntegriCloud