summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pci-keystone.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2017-06-05 10:53:46 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-07-03 01:38:50 +0200
commit4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012 (patch)
tree4c837c914e7898976ac632331a9db4070270d0c8 /drivers/pci/dwc/pci-keystone.c
parentPCI: host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD (diff)
downloadlinux-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.tar.xz
linux-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.zip
PCI: dwc: Constify dw_pcie_host_ops structures
The dw_pcie_host_ops structures are never modified. Constify these structures such that these can be write-protected. Signed-off-by: Jisheng Zhang <jszhang@marvell.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Jingoo Han <jingoohan1@gmail.com> Acked-by: Kishon Vijay Abraham I <kishon@ti.com>
Diffstat (limited to 'drivers/pci/dwc/pci-keystone.c')
-rw-r--r--drivers/pci/dwc/pci-keystone.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pci-keystone.c b/drivers/pci/dwc/pci-keystone.c
index fcc9723bad6e..4783cec1f78d 100644
--- a/drivers/pci/dwc/pci-keystone.c
+++ b/drivers/pci/dwc/pci-keystone.c
@@ -291,7 +291,7 @@ static void __init ks_pcie_host_init(struct pcie_port *pp)
"Asynchronous external abort");
}
-static struct dw_pcie_host_ops keystone_pcie_host_ops = {
+static const struct dw_pcie_host_ops keystone_pcie_host_ops = {
.rd_other_conf = ks_dw_pcie_rd_other_conf,
.wr_other_conf = ks_dw_pcie_wr_other_conf,
.host_init = ks_pcie_host_init,