From: Bhumika Goyal Date: Mon, 18 Sep 2017 16:24:55 +0000 (+0530) Subject: x86/pci/intel_mid_pci: Constify intel_mid_pci_ops and make it __initconst X-Git-Tag: Ubuntu-5.2.0-15.16~5569^2~20^2~7 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=4113b0e60bf188c8a557c22f64294aa9c6019074;p=mirror_ubuntu-eoan-kernel.git 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 Signed-off-by: Bjorn Helgaas --- 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, };