diff options
author | Stefan Reinauer <stepan@coresystems.de> | 2007-10-24 09:08:58 +0000 |
---|---|---|
committer | Stefan Reinauer <stepan@openbios.org> | 2007-10-24 09:08:58 +0000 |
commit | f1cf1f7c3aba660e4a174e966c4ef366d908565c (patch) | |
tree | 134a41fec67276e856addd777c8ae15e1c567bc8 /src/southbridge/intel/i82801er | |
parent | 0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad (diff) |
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 <stepan@coresystems.de>
Acked-by: Stefan Reinauer <stepan@coresystems.de>
git-svn-id: svn://svn.coreboot.org/coreboot/trunk@2891 2b7e53f0-3cfb-0310-b3e9-8179ed1497e1
Diffstat (limited to 'src/southbridge/intel/i82801er')
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_ac97.c | 4 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_ehci.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_ide.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_lpc.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_pci.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_sata.c | 4 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_smbus.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801er/i82801er_uhci.c | 6 |
8 files changed, 12 insertions, 12 deletions
diff --git a/src/southbridge/intel/i82801er/i82801er_ac97.c b/src/southbridge/intel/i82801er/i82801er_ac97.c index ffc062e718..0525a5ebdf 100644 --- a/src/southbridge/intel/i82801er/i82801er_ac97.c +++ b/src/southbridge/intel/i82801er/i82801er_ac97.c @@ -25,12 +25,12 @@ static struct device_operations ac97_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver ac97_audio_driver __pci_driver = { +static const struct pci_driver ac97_audio_driver __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_AC97_AUDIO, }; -static struct pci_driver ac97_modem_driver __pci_driver = { +static const struct pci_driver ac97_modem_driver __pci_driver = { .ops = &ac97_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_AC97_MODEM, diff --git a/src/southbridge/intel/i82801er/i82801er_ehci.c b/src/southbridge/intel/i82801er/i82801er_ehci.c index c7a291233f..47b18de505 100644 --- a/src/southbridge/intel/i82801er/i82801er_ehci.c +++ b/src/southbridge/intel/i82801er/i82801er_ehci.c @@ -43,7 +43,7 @@ static struct device_operations ehci_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver ehci_driver __pci_driver = { +static const struct pci_driver ehci_driver __pci_driver = { .ops = &ehci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_EHCI, diff --git a/src/southbridge/intel/i82801er/i82801er_ide.c b/src/southbridge/intel/i82801er/i82801er_ide.c index e42f775029..8d8e391a97 100644 --- a/src/southbridge/intel/i82801er/i82801er_ide.c +++ b/src/southbridge/intel/i82801er/i82801er_ide.c @@ -35,7 +35,7 @@ static struct device_operations ide_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver ide_driver __pci_driver = { +static const struct pci_driver ide_driver __pci_driver = { .ops = &ide_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_IDE, diff --git a/src/southbridge/intel/i82801er/i82801er_lpc.c b/src/southbridge/intel/i82801er/i82801er_lpc.c index 3f77b51409..eff7a8cdf4 100644 --- a/src/southbridge/intel/i82801er/i82801er_lpc.c +++ b/src/southbridge/intel/i82801er/i82801er_lpc.c @@ -385,7 +385,7 @@ static struct device_operations lpc_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver lpc_driver __pci_driver = { +static const struct pci_driver lpc_driver __pci_driver = { .ops = &lpc_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_ISA, diff --git a/src/southbridge/intel/i82801er/i82801er_pci.c b/src/southbridge/intel/i82801er/i82801er_pci.c index c0b6aa9ad3..6aa578f7f6 100644 --- a/src/southbridge/intel/i82801er/i82801er_pci.c +++ b/src/southbridge/intel/i82801er/i82801er_pci.c @@ -37,7 +37,7 @@ static struct device_operations pci_ops = { .ops_pci = 0, }; -static struct pci_driver pci_driver __pci_driver = { +static const struct pci_driver pci_driver __pci_driver = { .ops = &pci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_PCI, diff --git a/src/southbridge/intel/i82801er/i82801er_sata.c b/src/southbridge/intel/i82801er/i82801er_sata.c index d9eba3c5a1..515f1c9cc8 100644 --- a/src/southbridge/intel/i82801er/i82801er_sata.c +++ b/src/southbridge/intel/i82801er/i82801er_sata.c @@ -49,13 +49,13 @@ static struct device_operations sata_ops = { .ops_pci = 0, }; -static struct pci_driver sata_driver __pci_driver = { +static const struct pci_driver sata_driver __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_1F2_R, }; -static struct pci_driver sata_driver_nr __pci_driver = { +static const struct pci_driver sata_driver_nr __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_1F2, diff --git a/src/southbridge/intel/i82801er/i82801er_smbus.c b/src/southbridge/intel/i82801er/i82801er_smbus.c index 67bdd8722c..23980c939a 100644 --- a/src/southbridge/intel/i82801er/i82801er_smbus.c +++ b/src/southbridge/intel/i82801er/i82801er_smbus.c @@ -37,7 +37,7 @@ static struct device_operations smbus_ops = { .ops_smbus_bus = &lops_smbus_bus, }; -static struct pci_driver smbus_driver __pci_driver = { +static const struct pci_driver smbus_driver __pci_driver = { .ops = &smbus_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_SMB, diff --git a/src/southbridge/intel/i82801er/i82801er_uhci.c b/src/southbridge/intel/i82801er/i82801er_uhci.c index 733acb7410..bf19bcbcf7 100644 --- a/src/southbridge/intel/i82801er/i82801er_uhci.c +++ b/src/southbridge/intel/i82801er/i82801er_uhci.c @@ -36,19 +36,19 @@ static struct device_operations uhci_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver uhci_driver __pci_driver = { +static const struct pci_driver uhci_driver __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_USB, }; -static struct pci_driver usb2_driver __pci_driver = { +static const struct pci_driver usb2_driver __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_USB2, }; -static struct pci_driver usb3_driver __pci_driver = { +static const struct pci_driver usb3_driver __pci_driver = { .ops = &uhci_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801ER_USB3, |