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/amd | |
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/amd')
20 files changed, 25 insertions, 25 deletions
diff --git a/src/southbridge/amd/amd8111/amd8111_ac97.c b/src/southbridge/amd/amd8111/amd8111_ac97.c index 40f663d9b1..697915e002 100644 --- a/src/southbridge/amd/amd8111/amd8111_ac97.c +++ b/src/southbridge/amd/amd8111/amd8111_ac97.c @@ -28,7 +28,7 @@ static struct device_operations ac97audio_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver ac97audio_driver __pci_driver = { +static const struct pci_driver ac97audio_driver __pci_driver = { .ops = &ac97audio_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x746D, @@ -45,7 +45,7 @@ static struct device_operations ac97modem_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver ac97modem_driver __pci_driver = { +static const struct pci_driver ac97modem_driver __pci_driver = { .ops = &ac97modem_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x746E, diff --git a/src/southbridge/amd/amd8111/amd8111_acpi.c b/src/southbridge/amd/amd8111/amd8111_acpi.c index 22cb003d97..7d18b00f0c 100644 --- a/src/southbridge/amd/amd8111/amd8111_acpi.c +++ b/src/southbridge/amd/amd8111/amd8111_acpi.c @@ -213,7 +213,7 @@ static struct device_operations acpi_ops = { .ops_smbus_bus = &lops_smbus_bus, }; -static struct pci_driver acpi_driver __pci_driver = { +static const struct pci_driver acpi_driver __pci_driver = { .ops = &acpi_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_8111_ACPI, diff --git a/src/southbridge/amd/amd8111/amd8111_ide.c b/src/southbridge/amd/amd8111/amd8111_ide.c index 167484401b..6a1fd553b2 100644 --- a/src/southbridge/amd/amd8111/amd8111_ide.c +++ b/src/southbridge/amd/amd8111/amd8111_ide.c @@ -58,7 +58,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_AMD, .device = PCI_DEVICE_ID_AMD_8111_IDE, diff --git a/src/southbridge/amd/amd8111/amd8111_lpc.c b/src/southbridge/amd/amd8111/amd8111_lpc.c index 0232c6a3e5..65d3945fe5 100644 --- a/src/southbridge/amd/amd8111/amd8111_lpc.c +++ b/src/southbridge/amd/amd8111/amd8111_lpc.c @@ -198,7 +198,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_AMD, .device = PCI_DEVICE_ID_AMD_8111_ISA, diff --git a/src/southbridge/amd/amd8111/amd8111_nic.c b/src/southbridge/amd/amd8111/amd8111_nic.c index 0a96d74577..241cc01622 100644 --- a/src/southbridge/amd/amd8111/amd8111_nic.c +++ b/src/southbridge/amd/amd8111/amd8111_nic.c @@ -82,7 +82,7 @@ static struct device_operations nic_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver nic_driver __pci_driver = { +static const struct pci_driver nic_driver __pci_driver = { .ops = &nic_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_8111_NIC, diff --git a/src/southbridge/amd/amd8111/amd8111_pci.c b/src/southbridge/amd/amd8111/amd8111_pci.c index 6cedc1de94..9e7724980f 100644 --- a/src/southbridge/amd/amd8111/amd8111_pci.c +++ b/src/southbridge/amd/amd8111/amd8111_pci.c @@ -60,7 +60,7 @@ static struct device_operations pci_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver pci_driver __pci_driver = { +static const struct pci_driver pci_driver __pci_driver = { .ops = &pci_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_8111_PCI, diff --git a/src/southbridge/amd/amd8111/amd8111_smbus.c b/src/southbridge/amd/amd8111/amd8111_smbus.c index e881900134..2554fd0c5e 100644 --- a/src/southbridge/amd/amd8111/amd8111_smbus.c +++ b/src/southbridge/amd/amd8111/amd8111_smbus.c @@ -34,7 +34,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_AMD, .device = PCI_DEVICE_ID_AMD_8111_SMB, diff --git a/src/southbridge/amd/amd8111/amd8111_usb.c b/src/southbridge/amd/amd8111/amd8111_usb.c index 5a01a97c58..f1c331dbaf 100644 --- a/src/southbridge/amd/amd8111/amd8111_usb.c +++ b/src/southbridge/amd/amd8111/amd8111_usb.c @@ -30,7 +30,7 @@ static struct device_operations usb_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver usb_driver __pci_driver = { +static const struct pci_driver usb_driver __pci_driver = { .ops = &usb_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_8111_USB, diff --git a/src/southbridge/amd/amd8111/amd8111_usb2.c b/src/southbridge/amd/amd8111/amd8111_usb2.c index 459bf8a68b..0156b6ac2f 100644 --- a/src/southbridge/amd/amd8111/amd8111_usb2.c +++ b/src/southbridge/amd/amd8111/amd8111_usb2.c @@ -38,7 +38,7 @@ static struct device_operations usb2_ops = { // .ops_pci = &lops_pci, }; -static struct pci_driver usb2_driver __pci_driver = { +static const struct pci_driver usb2_driver __pci_driver = { .ops = &usb2_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_8111_USB2, diff --git a/src/southbridge/amd/amd8131-disable/amd8131_bridge.c b/src/southbridge/amd/amd8131-disable/amd8131_bridge.c index 648dbba250..bcb89fa22a 100644 --- a/src/southbridge/amd/amd8131-disable/amd8131_bridge.c +++ b/src/southbridge/amd/amd8131-disable/amd8131_bridge.c @@ -80,7 +80,7 @@ static struct device_operations pcix_ops = { .enable = amd8131_enable, }; -static struct pci_driver pcix_driver __pci_driver = { +static const struct pci_driver pcix_driver __pci_driver = { .ops = &pcix_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7450, @@ -108,7 +108,7 @@ static struct device_operations ioapic_ops = { .enable = ioapic_enable, }; -static struct pci_driver ioapic_driver __pci_driver = { +static const struct pci_driver ioapic_driver __pci_driver = { .ops = &ioapic_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7451, diff --git a/src/southbridge/amd/amd8131/amd8131_bridge.c b/src/southbridge/amd/amd8131/amd8131_bridge.c index 828b083f2e..6064219acb 100644 --- a/src/southbridge/amd/amd8131/amd8131_bridge.c +++ b/src/southbridge/amd/amd8131/amd8131_bridge.c @@ -394,7 +394,7 @@ static struct device_operations pcix_ops = { .reset_bus = pci_bus_reset, }; -static struct pci_driver pcix_driver __pci_driver = { +static const struct pci_driver pcix_driver __pci_driver = { .ops = &pcix_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7450, @@ -427,7 +427,7 @@ static struct device_operations ioapic_ops = { .ops_pci = &pci_ops_pci_dev, }; -static struct pci_driver ioapic_driver __pci_driver = { +static const struct pci_driver ioapic_driver __pci_driver = { .ops = &ioapic_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7451, diff --git a/src/southbridge/amd/amd8132/amd8132_bridge.c b/src/southbridge/amd/amd8132/amd8132_bridge.c index 129d2af0ff..f06ef24280 100644 --- a/src/southbridge/amd/amd8132/amd8132_bridge.c +++ b/src/southbridge/amd/amd8132/amd8132_bridge.c @@ -380,7 +380,7 @@ static struct device_operations pcix_ops = { .reset_bus = pci_bus_reset, }; -static struct pci_driver pcix_driver __pci_driver = { +static const struct pci_driver pcix_driver __pci_driver = { .ops = &pcix_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7458, @@ -449,7 +449,7 @@ static struct device_operations ioapic_ops = { .ops_pci = &pci_ops_pci_dev, }; -static struct pci_driver ioapic_driver __pci_driver = { +static const struct pci_driver ioapic_driver __pci_driver = { .ops = &ioapic_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7459, diff --git a/src/southbridge/amd/amd8151/amd8151_agp3.c b/src/southbridge/amd/amd8151/amd8151_agp3.c index c54849bb51..93c7992810 100644 --- a/src/southbridge/amd/amd8151/amd8151_agp3.c +++ b/src/southbridge/amd/amd8151/amd8151_agp3.c @@ -29,7 +29,7 @@ static struct device_operations agp3bridge_ops = { .scan_bus = pci_scan_bridge, }; -static struct pci_driver agp3bridge_driver __pci_driver = { +static const struct pci_driver agp3bridge_driver __pci_driver = { .ops = &agp3bridge_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7455, // AGP Bridge @@ -68,7 +68,7 @@ static struct device_operations agp3dev_ops = { .ops_pci = &pci_ops_pci_dev, }; -static struct pci_driver agp3dev_driver __pci_driver = { +static const struct pci_driver agp3dev_driver __pci_driver = { .ops = &agp3dev_ops, .vendor = PCI_VENDOR_ID_AMD, .device = 0x7454, //AGP Device diff --git a/src/southbridge/amd/cs5530/cs5530_ide.c b/src/southbridge/amd/cs5530/cs5530_ide.c index 2d8b2c4622..2885a46152 100644 --- a/src/southbridge/amd/cs5530/cs5530_ide.c +++ b/src/southbridge/amd/cs5530/cs5530_ide.c @@ -71,7 +71,7 @@ static struct device_operations ide_ops = { .ops_pci = 0, }; -static struct pci_driver ide_driver __pci_driver = { +static const struct pci_driver ide_driver __pci_driver = { .ops = &ide_ops, .vendor = PCI_VENDOR_ID_CYRIX, .device = PCI_DEVICE_ID_CYRIX_5530_IDE, diff --git a/src/southbridge/amd/cs5530/cs5530_isa.c b/src/southbridge/amd/cs5530/cs5530_isa.c index 955a93b02e..aec7afa06c 100644 --- a/src/southbridge/amd/cs5530/cs5530_isa.c +++ b/src/southbridge/amd/cs5530/cs5530_isa.c @@ -53,7 +53,7 @@ static struct device_operations isa_ops = { .scan_bus = scan_static_bus, }; -static struct pci_driver isa_driver __pci_driver = { +static const struct pci_driver isa_driver __pci_driver = { .ops = &isa_ops, .vendor = PCI_VENDOR_ID_CYRIX, .device = PCI_DEVICE_ID_CYRIX_5530_LEGACY, diff --git a/src/southbridge/amd/cs5530/cs5530_vga.c b/src/southbridge/amd/cs5530/cs5530_vga.c index c61a20f563..d60ce6ed6e 100644 --- a/src/southbridge/amd/cs5530/cs5530_vga.c +++ b/src/southbridge/amd/cs5530/cs5530_vga.c @@ -484,7 +484,7 @@ static struct device_operations vga_ops = { .enable = NULL, /* not required */ }; -static struct pci_driver vga_pci_driver __pci_driver = { +static const struct pci_driver vga_pci_driver __pci_driver = { .ops = &vga_ops, .vendor = PCI_VENDOR_ID_CYRIX, .device = PCI_DEVICE_ID_CYRIX_5530_VIDEO, diff --git a/src/southbridge/amd/cs5535/cs5535.c b/src/southbridge/amd/cs5535/cs5535.c index 9a35ff24bf..e56e199c41 100644 --- a/src/southbridge/amd/cs5535/cs5535.c +++ b/src/southbridge/amd/cs5535/cs5535.c @@ -85,7 +85,7 @@ static struct device_operations southbridge_ops = { .scan_bus = scan_static_bus, }; -static struct pci_driver cs5535_pci_driver __pci_driver = { +static const struct pci_driver cs5535_pci_driver __pci_driver = { .ops = &southbridge_ops, .vendor = PCI_VENDOR_ID_NS, .device = PCI_DEVICE_ID_NS_CS5535 diff --git a/src/southbridge/amd/cs5535/cs5535_ide.c b/src/southbridge/amd/cs5535/cs5535_ide.c index 123f775fba..b6397268be 100644 --- a/src/southbridge/amd/cs5535/cs5535_ide.c +++ b/src/southbridge/amd/cs5535/cs5535_ide.c @@ -23,7 +23,7 @@ static struct device_operations ide_ops = { .enable = ide_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_NS, .device = PCI_DEVICE_ID_NS_CS5535_IDE, diff --git a/src/southbridge/amd/cs5536/cs5536.c b/src/southbridge/amd/cs5536/cs5536.c index 9f4e90ed01..3f947cf17a 100644 --- a/src/southbridge/amd/cs5536/cs5536.c +++ b/src/southbridge/amd/cs5536/cs5536.c @@ -627,7 +627,7 @@ static struct device_operations southbridge_ops = { .scan_bus = scan_static_bus, }; -static struct pci_driver cs5536_pci_driver __pci_driver = { +static const struct pci_driver cs5536_pci_driver __pci_driver = { .ops = &southbridge_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_CS5536_ISA diff --git a/src/southbridge/amd/cs5536/cs5536_ide.c b/src/southbridge/amd/cs5536/cs5536_ide.c index 74331a0ba1..b95a46c52a 100644 --- a/src/southbridge/amd/cs5536/cs5536_ide.c +++ b/src/southbridge/amd/cs5536/cs5536_ide.c @@ -61,7 +61,7 @@ static struct device_operations ide_ops = { .enable = 0, }; -static struct pci_driver ide_driver __pci_driver = { +static const struct pci_driver ide_driver __pci_driver = { .ops = &ide_ops, .vendor = PCI_VENDOR_ID_AMD, .device = PCI_DEVICE_ID_AMD_CS5536_B0_IDE, |