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/via/vt8235 | |
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/via/vt8235')
-rw-r--r-- | src/southbridge/via/vt8235/vt8235_ide.c | 2 | ||||
-rw-r--r-- | src/southbridge/via/vt8235/vt8235_lpc.c | 2 | ||||
-rw-r--r-- | src/southbridge/via/vt8235/vt8235_nic.c | 2 | ||||
-rw-r--r-- | src/southbridge/via/vt8235/vt8235_usb.c | 2 |
4 files changed, 4 insertions, 4 deletions
diff --git a/src/southbridge/via/vt8235/vt8235_ide.c b/src/southbridge/via/vt8235/vt8235_ide.c index fedda9c3be..5f7a85fd07 100644 --- a/src/southbridge/via/vt8235/vt8235_ide.c +++ b/src/southbridge/via/vt8235/vt8235_ide.c @@ -107,7 +107,7 @@ static struct device_operations ide_ops = { .ops_pci = 0, }; -static struct pci_driver northbridge_driver __pci_driver = { +static const struct pci_driver northbridge_driver __pci_driver = { .ops = &ide_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_82C586_1, diff --git a/src/southbridge/via/vt8235/vt8235_lpc.c b/src/southbridge/via/vt8235/vt8235_lpc.c index cb083f246f..9c18891b10 100644 --- a/src/southbridge/via/vt8235/vt8235_lpc.c +++ b/src/southbridge/via/vt8235/vt8235_lpc.c @@ -259,7 +259,7 @@ static struct device_operations vt8235_lpc_ops = { .scan_bus = scan_static_bus, }; -static struct pci_driver lpc_driver __pci_driver = { +static const struct pci_driver lpc_driver __pci_driver = { .ops = &vt8235_lpc_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_8235, diff --git a/src/southbridge/via/vt8235/vt8235_nic.c b/src/southbridge/via/vt8235/vt8235_nic.c index 38e62fa366..6051c5843b 100644 --- a/src/southbridge/via/vt8235/vt8235_nic.c +++ b/src/southbridge/via/vt8235/vt8235_nic.c @@ -30,7 +30,7 @@ static struct device_operations nic_ops = { .ops_pci = 0, }; -static struct pci_driver northbridge_driver __pci_driver = { +static const struct pci_driver northbridge_driver __pci_driver = { .ops = &nic_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_8233_7, diff --git a/src/southbridge/via/vt8235/vt8235_usb.c b/src/southbridge/via/vt8235/vt8235_usb.c index 8142c535da..7992602146 100644 --- a/src/southbridge/via/vt8235/vt8235_usb.c +++ b/src/southbridge/via/vt8235/vt8235_usb.c @@ -38,7 +38,7 @@ static struct device_operations usb_ops = { .ops_pci = 0, }; -static struct pci_driver northbridge_driver __pci_driver = { +static const struct pci_driver northbridge_driver __pci_driver = { .ops = &usb_ops, .vendor = PCI_VENDOR_ID_VIA, .device = PCI_DEVICE_ID_VIA_82C586_2, |