Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6af13bac authored by Mathias Krause's avatar Mathias Krause Committed by Bjorn Helgaas
Browse files

x86/PCI: Constify pci_mmcfg_probes[] array



The pci_mmcfg_probes[] array is only ever read, therefore make it const.

Signed-off-by: default avatarMathias Krause <minipli@googlemail.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Acked-by: default avatarIngo Molnar <mingo@kernel.org>
parent 776f7ad6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,7 +306,7 @@ struct pci_mmcfg_hostbridge_probe {
	const char *(*probe)(void);
};

static struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initdata = {
static const struct pci_mmcfg_hostbridge_probe pci_mmcfg_probes[] __initconst = {
	{ 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,
	  PCI_DEVICE_ID_INTEL_E7520_MCH, pci_mmcfg_e7520 },
	{ 0, PCI_DEVFN(0, 0), PCI_VENDOR_ID_INTEL,