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/bcm5780 | |
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/broadcom/bcm5780')
-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 |
3 files changed, 4 insertions, 4 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, |