summaryrefslogtreecommitdiffstats
path: root/drivers/pci/dwc/pcie-qcom.c
diff options
context:
space:
mode:
authorJisheng Zhang <jszhang@marvell.com>2017-06-05 16:53:46 +0800
committerBjorn Helgaas <bhelgaas@google.com>2017-07-02 18:38:50 -0500
commit4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012 (patch)
tree4c837c914e7898976ac632331a9db4070270d0c8 /drivers/pci/dwc/pcie-qcom.c
parent3eefa790c9681a2dcbc923542dcd85b6989e8855 (diff)
downloadop-kernel-dev-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.zip
op-kernel-dev-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.tar.gz
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/pcie-qcom.c')
-rw-r--r--drivers/pci/dwc/pcie-qcom.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pcie-qcom.c b/drivers/pci/dwc/pcie-qcom.c
index 96ee527..39e8c00 100644
--- a/drivers/pci/dwc/pcie-qcom.c
+++ b/drivers/pci/dwc/pcie-qcom.c
@@ -634,7 +634,7 @@ static int qcom_pcie_rd_own_conf(struct pcie_port *pp, int where, int size,
return dw_pcie_read(pci->dbi_base + where, size, val);
}
-static struct dw_pcie_host_ops qcom_pcie_dw_ops = {
+static const struct dw_pcie_host_ops qcom_pcie_dw_ops = {
.host_init = qcom_pcie_host_init,
.rd_own_conf = qcom_pcie_rd_own_conf,
};
OpenPOWER on IntegriCloud