diff options
author | Jisheng Zhang | 2017-06-05 10:53:46 +0200 |
---|---|---|
committer | Bjorn Helgaas | 2017-07-03 01:38:50 +0200 |
commit | 4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012 (patch) | |
tree | 4c837c914e7898976ac632331a9db4070270d0c8 /drivers/pci/dwc/pcie-designware-plat.c | |
parent | PCI: host: Mark PCIe/PCI (MSI) cascade ISR as IRQF_NO_THREAD (diff) | |
download | kernel-qcow2-linux-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.tar.gz kernel-qcow2-linux-4ab2e7c0df6b8bbc6c8ea1617b737d33c2510012.tar.xz kernel-qcow2-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/pcie-designware-plat.c')
-rw-r--r-- | drivers/pci/dwc/pcie-designware-plat.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/dwc/pcie-designware-plat.c b/drivers/pci/dwc/pcie-designware-plat.c index a9865d91b43c..091b4e7ad059 100644 --- a/drivers/pci/dwc/pcie-designware-plat.c +++ b/drivers/pci/dwc/pcie-designware-plat.c @@ -46,7 +46,7 @@ static void dw_plat_pcie_host_init(struct pcie_port *pp) dw_pcie_msi_init(pp); } -static struct dw_pcie_host_ops dw_plat_pcie_host_ops = { +static const struct dw_pcie_host_ops dw_plat_pcie_host_ops = { .host_init = dw_plat_pcie_host_init, }; |