summaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/pcbios.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2011-09-15 09:58:51 +0200
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-10-14 18:05:28 +0200
commit72da0b07b1b497927758a2102b856ce41e4ba81e (patch)
treead8e8f895c60fb2dfe0d5922e7c9ca9e8b75e6fe /arch/x86/pci/pcbios.c
parentPCI: Add quirk for known incorrect MPSS (diff)
downloadlinux-72da0b07b1b497927758a2102b856ce41e4ba81e.tar.xz
linux-72da0b07b1b497927758a2102b856ce41e4ba81e.zip
x86: constify PCI raw ops structures
As with any other such change, the goal is to prevent inadvertent writes to these structures (assuming DEBUG_RODATA is enabled), and to separate data (possibly frequently) written to from such never getting modified. Reviewed-by: Ingo Molnar <mingo@elte.hu> Signed-off-by: Jan Beulich <jbeulich@novell.com> Signed-off-by: Jesse Barnes <jbarnes@virtuousgeek.org>
Diffstat (limited to 'arch/x86/pci/pcbios.c')
-rw-r--r--arch/x86/pci/pcbios.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/pci/pcbios.c b/arch/x86/pci/pcbios.c
index f68553551467..db0e9a51e611 100644
--- a/arch/x86/pci/pcbios.c
+++ b/arch/x86/pci/pcbios.c
@@ -303,7 +303,7 @@ static int pci_bios_write(unsigned int seg, unsigned int bus,
* Function table for BIOS32 access
*/
-static struct pci_raw_ops pci_bios_access = {
+static const struct pci_raw_ops pci_bios_access = {
.read = pci_bios_read,
.write = pci_bios_write
};
@@ -312,7 +312,7 @@ static struct pci_raw_ops pci_bios_access = {
* Try to find PCI BIOS.
*/
-static struct pci_raw_ops * __devinit pci_find_bios(void)
+static const struct pci_raw_ops * __devinit pci_find_bios(void)
{
union bios32 *check;
unsigned char sum;