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/i82801ca | |
parent | 0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad (diff) | |
download | coreboot-f1cf1f7c3aba660e4a174e966c4ef366d908565c.tar.xz |
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/i82801ca')
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_ac97.c | 4 | ||||
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_ide.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_lpc.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_nic.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_pci.c | 2 | ||||
-rw-r--r-- | src/southbridge/intel/i82801ca/i82801ca_usb.c | 6 |
6 files changed, 9 insertions, 9 deletions
diff --git a/src/southbridge/intel/i82801ca/i82801ca_ac97.c b/src/southbridge/intel/i82801ca/i82801ca_ac97.c index 0bef1f4f68..7e03cc382e 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_ac97.c +++ b/src/southbridge/intel/i82801ca/i82801ca_ac97.c @@ -18,7 +18,7 @@ static struct device_operations ac97audio_ops = { .scan_bus = 0, }; -static struct pci_driver ac97audio_driver __pci_driver = { +static const struct pci_driver ac97audio_driver __pci_driver = { .ops = &ac97audio_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_AC97_AUDIO, @@ -34,7 +34,7 @@ static struct device_operations ac97modem_ops = { .scan_bus = 0, }; -static struct pci_driver ac97modem_driver __pci_driver = { +static const struct pci_driver ac97modem_driver __pci_driver = { .ops = &ac97modem_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_AC97_MODEM, diff --git a/src/southbridge/intel/i82801ca/i82801ca_ide.c b/src/southbridge/intel/i82801ca/i82801ca_ide.c index 38700bd851..d1a19c77aa 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_ide.c +++ b/src/southbridge/intel/i82801ca/i82801ca_ide.c @@ -41,7 +41,7 @@ static struct device_operations ide_ops = { .enable = i82801ca_enable, }; -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_82801CA_IDE, diff --git a/src/southbridge/intel/i82801ca/i82801ca_lpc.c b/src/southbridge/intel/i82801ca/i82801ca_lpc.c index 07f88f2f6d..b249438a1f 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_lpc.c +++ b/src/southbridge/intel/i82801ca/i82801ca_lpc.c @@ -233,7 +233,7 @@ static struct device_operations lpc_ops = { .enable = 0, }; -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_82801CA_LPC, diff --git a/src/southbridge/intel/i82801ca/i82801ca_nic.c b/src/southbridge/intel/i82801ca/i82801ca_nic.c index 61d3977158..c0b01bce70 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_nic.c +++ b/src/southbridge/intel/i82801ca/i82801ca_nic.c @@ -14,7 +14,7 @@ static struct device_operations nic_ops = { .scan_bus = 0, }; -static struct pci_driver nic_driver __pci_driver = { +static const struct pci_driver nic_driver __pci_driver = { .ops = &nic_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_LAN, diff --git a/src/southbridge/intel/i82801ca/i82801ca_pci.c b/src/southbridge/intel/i82801ca/i82801ca_pci.c index d5355cb62a..2508419d1b 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_pci.c +++ b/src/southbridge/intel/i82801ca/i82801ca_pci.c @@ -22,7 +22,7 @@ static struct device_operations pci_ops = { .scan_bus = pci_scan_bridge,
};
-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_82801CA_PCI,
diff --git a/src/southbridge/intel/i82801ca/i82801ca_usb.c b/src/southbridge/intel/i82801ca/i82801ca_usb.c index fd8d3fb45a..180d58504a 100644 --- a/src/southbridge/intel/i82801ca/i82801ca_usb.c +++ b/src/southbridge/intel/i82801ca/i82801ca_usb.c @@ -31,17 +31,17 @@ static struct device_operations usb_ops = { .enable = i82801ca_enable, }; -static struct pci_driver usb_driver_1 __pci_driver = { +static const struct pci_driver usb_driver_1 __pci_driver = { .ops = &usb_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_USB, }; -static struct pci_driver usb_driver_2 __pci_driver = { +static const struct pci_driver usb_driver_2 __pci_driver = { .ops = &usb_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_USB2, }; -static struct pci_driver usb_driver_3 __pci_driver = { +static const struct pci_driver usb_driver_3 __pci_driver = { .ops = &usb_ops, .vendor = PCI_VENDOR_ID_INTEL, .device = PCI_DEVICE_ID_INTEL_82801CA_USB3, |