summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci
diff options
context:
space:
mode:
authorBhumika Goyal <bhumirks@gmail.com>2017-09-18 18:24:55 +0200
committerBjorn Helgaas <bhelgaas@google.com>2017-10-05 22:53:31 +0200
commit4113b0e60bf188c8a557c22f64294aa9c6019074 (patch)
tree5e6170c779f50133b5e5a79c6b582dfb554ce59b /arch/x86/pci
parentPCI: Constify pci_dev_type structure (diff)
downloadlinux-4113b0e60bf188c8a557c22f64294aa9c6019074.tar.xz
linux-4113b0e60bf188c8a557c22f64294aa9c6019074.zip
x86/pci/intel_mid_pci: Constify intel_mid_pci_ops and make it __initconst
Make this const as it is only used during a copy operation. This usage is inside init function and the structure is not referenced after initialisation, so make it __initconst too. Signed-off-by: Bhumika Goyal <bhumirks@gmail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'arch/x86/pci')
-rw-r--r--arch/x86/pci/intel_mid_pci.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/intel_mid_pci.c b/arch/x86/pci/intel_mid_pci.c
index b901ece278dd..63fbe8f5c70e 100644
--- a/arch/x86/pci/intel_mid_pci.c
+++ b/arch/x86/pci/intel_mid_pci.c
@@ -279,7 +279,7 @@ static void intel_mid_pci_irq_disable(struct pci_dev *dev)
}
}
-static struct pci_ops intel_mid_pci_ops = {
+static const struct pci_ops intel_mid_pci_ops __initconst = {
.read = pci_read,
.write = pci_write,
};