aboutsummaryrefslogtreecommitdiffstats
path: root/arch/x86/pci/olpc.c
diff options
context:
space:
mode:
authorJan Beulich <JBeulich@suse.com>2011-09-15 03:58:51 -0400
committerJesse Barnes <jbarnes@virtuousgeek.org>2011-10-14 12:05:28 -0400
commit72da0b07b1b497927758a2102b856ce41e4ba81e (patch)
treead8e8f895c60fb2dfe0d5922e7c9ca9e8b75e6fe /arch/x86/pci/olpc.c
parenta94d072b20239f6f615dc20f0a54f63e9b642f9e (diff)
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/olpc.c')
-rw-r--r--arch/x86/pci/olpc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/x86/pci/olpc.c b/arch/x86/pci/olpc.c
index 5262603b04d9..7043a4f0e98a 100644
--- a/arch/x86/pci/olpc.c
+++ b/arch/x86/pci/olpc.c
@@ -301,7 +301,7 @@ static int pci_olpc_write(unsigned int seg, unsigned int bus,
301 return 0; 301 return 0;
302} 302}
303 303
304static struct pci_raw_ops pci_olpc_conf = { 304static const struct pci_raw_ops pci_olpc_conf = {
305 .read = pci_olpc_read, 305 .read = pci_olpc_read,
306 .write = pci_olpc_write, 306 .write = pci_olpc_write,
307}; 307};