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/broadcom | |
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/broadcom')
-rw-r--r-- | src/southbridge/broadcom/bcm5780/bcm5780_nic.c | 4 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5780/bcm5780_pcie.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5780/bcm5780_pcix.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5785/bcm5785_ide.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5785/bcm5785_lpc.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5785/bcm5785_sata.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c | 2 | ||||
-rw-r--r-- | src/southbridge/broadcom/bcm5785/bcm5785_usb.c | 2 |
8 files changed, 9 insertions, 9 deletions
diff --git a/src/southbridge/broadcom/bcm5780/bcm5780_nic.c b/src/southbridge/broadcom/bcm5780/bcm5780_nic.c index 8033f4d5c4..19ff3703c9 100644 --- a/src/southbridge/broadcom/bcm5780/bcm5780_nic.c +++ b/src/southbridge/broadcom/bcm5780/bcm5780_nic.c @@ -37,12 +37,12 @@ static struct device_operations nic_ops = { .scan_bus = 0, .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_BROADCOM, .device = PCI_DEVICE_ID_BROADCOM_BCM5780_NIC, }; -static struct pci_driver nic1_driver __pci_driver = { +static const struct pci_driver nic1_driver __pci_driver = { .ops = &nic_ops, .vendor = PCI_VENDOR_ID_BROADCOM, .device = PCI_DEVICE_ID_BROADCOM_BCM5780_NIC1, diff --git a/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c b/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c index 24691775de..77777d2c01 100644 --- a/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c +++ b/src/southbridge/broadcom/bcm5780/bcm5780_pcie.c @@ -38,7 +38,7 @@ static struct device_operations pcie_ops = { }; -static struct pci_driver pcie_driver __pci_driver = { +static const struct pci_driver pcie_driver __pci_driver = { .ops = &pcie_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5780_PCIE, diff --git a/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c b/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c index d8f1c246ce..f83e54b682 100644 --- a/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c +++ b/src/southbridge/broadcom/bcm5780/bcm5780_pcix.c @@ -29,7 +29,7 @@ static struct device_operations ht_ops = { }; -static struct pci_driver ht_driver __pci_driver = { +static const struct pci_driver ht_driver __pci_driver = { .ops = &ht_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5780_PXB, diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_ide.c b/src/southbridge/broadcom/bcm5785/bcm5785_ide.c index b3cc493f5b..82263e8ec5 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785_ide.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785_ide.c @@ -50,7 +50,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_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_IDE, diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c b/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c index 5c061dbe86..c4043511d7 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785_lpc.c @@ -129,7 +129,7 @@ static struct device_operations lpc_ops = { // .enable = bcm5785_enable, .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_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_LPC, diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_sata.c b/src/southbridge/broadcom/bcm5785/bcm5785_sata.c index 426ee0ff0b..32b944bfdd 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785_sata.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785_sata.c @@ -87,7 +87,7 @@ static struct device_operations sata_ops = { .ops_pci = &lops_pci, }; -static struct pci_driver sata0_driver __pci_driver = { +static const struct pci_driver sata0_driver __pci_driver = { .ops = &sata_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_SATA, diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c b/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c index 5db13d636d..fcf035255a 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785_sb_pci_main.c @@ -145,7 +145,7 @@ static struct device_operations sb_ops = { .ops_pci = &lops_pci, .ops_smbus_bus = &lops_smbus_bus, }; -static struct pci_driver sb_driver __pci_driver = { +static const struct pci_driver sb_driver __pci_driver = { .ops = &sb_ops, .vendor = PCI_VENDOR_ID_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_SB_PCI_MAIN, diff --git a/src/southbridge/broadcom/bcm5785/bcm5785_usb.c b/src/southbridge/broadcom/bcm5785/bcm5785_usb.c index d9ce41aa1e..c2e7366272 100644 --- a/src/southbridge/broadcom/bcm5785/bcm5785_usb.c +++ b/src/southbridge/broadcom/bcm5785/bcm5785_usb.c @@ -41,7 +41,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_SERVERWORKS, .device = PCI_DEVICE_ID_SERVERWORKS_BCM5785_USB, |