From f1cf1f7c3aba660e4a174e966c4ef366d908565c Mon Sep 17 00:00:00 2001 From: Stefan Reinauer Date: Wed, 24 Oct 2007 09:08:58 +0000 Subject: Ever wondered where those "setting incorrect section attributes for rodata.pci_driver" warnings are coming from? We were packing those structures into a read-only segment, but forgot to mark them const. Despite its size, this is a fairly trivial patch created by a simple search/replace Signed-off-by: Stefan Reinauer Acked-by: Stefan Reinauer git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2891 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1 --- src/southbridge/intel/i82801xx/i82801xx_ac97.c | 24 ++++++++++++------------ 1 file changed, 12 insertions(+), 12 deletions(-) (limited to 'src/southbridge/intel/i82801xx/i82801xx_ac97.c') diff --git a/src/southbridge/intel/i82801xx/i82801xx_ac97.c b/src/southbridge/intel/i82801xx/i82801xx_ac97.c index 2befe4f1ba..14e2b4ae6e 100644 --- a/src/southbridge/intel/i82801xx/i82801xx_ac97.c +++ b/src/southbridge/intel/i82801xx/i82801xx_ac97.c @@ -35,78 +35,78 @@ static struct device_operations ac97_ops = { }; /* 82801AA */ -static struct pci_driver i82801aa_ac97_audio __pci_driver = { +static const struct pci_driver i82801aa_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2415, }; -static struct pci_driver i82801aa_ac97_modem __pci_driver = { +static const struct pci_driver i82801aa_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2416, }; /* 82801AB */ -static struct pci_driver i82801ab_ac97_audio __pci_driver = { +static const struct pci_driver i82801ab_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2425, }; -static struct pci_driver i82801ab_ac97_modem __pci_driver = { +static const struct pci_driver i82801ab_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2426, }; /* 82801BA */ -static struct pci_driver i82801ba_ac97_audio __pci_driver = { +static const struct pci_driver i82801ba_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2445, }; -static struct pci_driver i82801ba_ac97_modem __pci_driver = { +static const struct pci_driver i82801ba_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2446, }; /* 82801CA */ -static struct pci_driver i82801ca_ac97_audio __pci_driver = { +static const struct pci_driver i82801ca_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2485, }; -static struct pci_driver i82801ca_ac97_modem __pci_driver = { +static const struct pci_driver i82801ca_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x2486, }; /* 82801DB & 82801DBM */ -static struct pci_driver i82801db_ac97_audio __pci_driver = { +static const struct pci_driver i82801db_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x24c5, }; -static struct pci_driver i82801db_ac97_modem __pci_driver = { +static const struct pci_driver i82801db_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x24c6, }; /* 82801EB & 82801ER */ -static struct pci_driver i82801ex_ac97_audio __pci_driver = { +static const struct pci_driver i82801ex_ac97_audio __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x24d5, }; -static struct pci_driver i82801ex_ac97_modem __pci_driver = { +static const struct pci_driver i82801ex_ac97_modem __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = 0x24d6, -- cgit v1.2.3