diff options
author | Bhumika Goyal <bhumirks@gmail.com> | 2017-09-18 21:54:55 +0530 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2017-10-05 15:53:31 -0500 |
commit | 4113b0e60bf188c8a557c22f64294aa9c6019074 (patch) | |
tree | 5e6170c779f50133b5e5a79c6b582dfb554ce59b /arch/x86 | |
parent | 69f2dc24ff32ae61291dc63525d70c06ac9d8ba3 (diff) | |
download | linux-stable-4113b0e60bf188c8a557c22f64294aa9c6019074.tar.gz linux-stable-4113b0e60bf188c8a557c22f64294aa9c6019074.tar.bz2 linux-stable-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')
-rw-r--r-- | arch/x86/pci/intel_mid_pci.c | 2 |
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, }; |