aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMathias Krause <minipli@googlemail.com>2014-08-25 17:26:38 -0400
committerBjorn Helgaas <bhelgaas@google.com>2014-09-24 08:46:22 -0400
commit6af13bac777aaec7460475a9fea8e9640c4b606e (patch)
tree0a8b596a40e0fb5976e3130c8de71ef1fb803519
parent776f7ad6322817a5a021c5c479d688d322fb4b27 (diff)
x86/PCI: Constify pci_mmcfg_probes[] array
The pci_mmcfg_probes[] array is only ever read, therefore make it const. Signed-off-by: Mathias Krause <minipli@googlemail.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Acked-by: Ingo Molnar <mingo@kernel.org>
-rw-r--r--arch/x86/pci/mmconfig-shared.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/mmconfig-shared.c b/arch/x86/pci/mmconfig-shared.c
index 63fc0d4d5892..326198a4434e 100644
--- a/arch/x86/pci/mmconfig-shared.c
+++ b/arch/x86/pci/mmconfig-shared.c
@@ -306,7 +306,7 @@ struct pci_mmcfg_hostbridge_probe {
306 const char *(*probe)(void); 306 const char *(*probe)(void);
307}; 307};
308 308
309static struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initdata = { 309static const struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initconst = {
310 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL, 310 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
311 PCI_DEVICE_ID_INTEL_E7520_MCH, pci_mmcfg_e7520 }, 311 PCI_DEVICE_ID_INTEL_E7520_MCH, pci_mmcfg_e7520 },
312 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL, 312 { 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,