summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/esb6300
diff options
context:
space:
mode:
authorStefan Reinauer <stepan@coresystems.de>2007-10-24 09:08:58 +0000
committerStefan Reinauer <stepan@openbios.org>2007-10-24 09:08:58 +0000
commitf1cf1f7c3aba660e4a174e966c4ef366d908565c (patch)
tree134a41fec67276e856addd777c8ae15e1c567bc8 /src/southbridge/intel/esb6300
parent0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad (diff)
downloadcoreboot-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/esb6300')
-rw-r--r--src/southbridge/intel/esb6300/esb6300_ac97.c4
-rw-r--r--src/southbridge/intel/esb6300/esb6300_bridge1c.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_ehci.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_ide.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_lpc.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_pci.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_pic.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_sata.c4
-rw-r--r--src/southbridge/intel/esb6300/esb6300_smbus.c2
-rw-r--r--src/southbridge/intel/esb6300/esb6300_uhci.c6
10 files changed, 14 insertions, 14 deletions
diff --git a/src/southbridge/intel/esb6300/esb6300_ac97.c b/src/southbridge/intel/esb6300/esb6300_ac97.c
index cc221f6e64..231f8129ad 100644
--- a/src/southbridge/intel/esb6300/esb6300_ac97.c
+++ b/src/southbridge/intel/esb6300/esb6300_ac97.c
@@ -25,12 +25,12 @@ static struct device_operations ac97_ops = {
.ops_pci = &lops_pci,
};
-static struct pci_driver ac97_audio_driver __pci_driver = {
+static const struct pci_driver ac97_audio_driver __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_AC97_AUDIO,
};
-static struct pci_driver ac97_modem_driver __pci_driver = {
+static const struct pci_driver ac97_modem_driver __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_AC97_MODEM,
diff --git a/src/southbridge/intel/esb6300/esb6300_bridge1c.c b/src/southbridge/intel/esb6300/esb6300_bridge1c.c
index 49e3b056a0..77ee8b5588 100644
--- a/src/southbridge/intel/esb6300/esb6300_bridge1c.c
+++ b/src/southbridge/intel/esb6300/esb6300_bridge1c.c
@@ -43,7 +43,7 @@ static struct device_operations pci_ops = {
.ops_pci = 0,
};
-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_6300ESB_BRIDGE1C,
diff --git a/src/southbridge/intel/esb6300/esb6300_ehci.c b/src/southbridge/intel/esb6300/esb6300_ehci.c
index 58dcd9593c..313504866e 100644
--- a/src/southbridge/intel/esb6300/esb6300_ehci.c
+++ b/src/southbridge/intel/esb6300/esb6300_ehci.c
@@ -43,7 +43,7 @@ static struct device_operations ehci_ops = {
.ops_pci = &lops_pci,
};
-static struct pci_driver ehci_driver __pci_driver = {
+static const struct pci_driver ehci_driver __pci_driver = {
.ops = &ehci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_EHCI,
diff --git a/src/southbridge/intel/esb6300/esb6300_ide.c b/src/southbridge/intel/esb6300/esb6300_ide.c
index bb77ad7726..eca8a3fefa 100644
--- a/src/southbridge/intel/esb6300/esb6300_ide.c
+++ b/src/southbridge/intel/esb6300/esb6300_ide.c
@@ -48,7 +48,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_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_IDE,
diff --git a/src/southbridge/intel/esb6300/esb6300_lpc.c b/src/southbridge/intel/esb6300/esb6300_lpc.c
index caef888d2a..a704b756c1 100644
--- a/src/southbridge/intel/esb6300/esb6300_lpc.c
+++ b/src/southbridge/intel/esb6300/esb6300_lpc.c
@@ -403,7 +403,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_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_ISA,
diff --git a/src/southbridge/intel/esb6300/esb6300_pci.c b/src/southbridge/intel/esb6300/esb6300_pci.c
index 1131941728..64aeb0db46 100644
--- a/src/southbridge/intel/esb6300/esb6300_pci.c
+++ b/src/southbridge/intel/esb6300/esb6300_pci.c
@@ -29,7 +29,7 @@ static struct device_operations pci_ops = {
.ops_pci = 0,
};
-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_6300ESB_PCI,
diff --git a/src/southbridge/intel/esb6300/esb6300_pic.c b/src/southbridge/intel/esb6300/esb6300_pic.c
index 024c7e2980..71d70e956b 100644
--- a/src/southbridge/intel/esb6300/esb6300_pic.c
+++ b/src/southbridge/intel/esb6300/esb6300_pic.c
@@ -101,7 +101,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_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_PIC1,
diff --git a/src/southbridge/intel/esb6300/esb6300_sata.c b/src/southbridge/intel/esb6300/esb6300_sata.c
index 9d8fb759fc..9c5c782170 100644
--- a/src/southbridge/intel/esb6300/esb6300_sata.c
+++ b/src/southbridge/intel/esb6300/esb6300_sata.c
@@ -63,13 +63,13 @@ static struct device_operations sata_ops = {
.ops_pci = &lops_pci,
};
-static struct pci_driver sata_driver __pci_driver = {
+static const struct pci_driver sata_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_SATA,
};
-static struct pci_driver sata_driver_nr __pci_driver = {
+static const struct pci_driver sata_driver_nr __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_SATA_R,
diff --git a/src/southbridge/intel/esb6300/esb6300_smbus.c b/src/southbridge/intel/esb6300/esb6300_smbus.c
index 6cb6f2d9bb..c202a3008e 100644
--- a/src/southbridge/intel/esb6300/esb6300_smbus.c
+++ b/src/southbridge/intel/esb6300/esb6300_smbus.c
@@ -37,7 +37,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_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_SMB,
diff --git a/src/southbridge/intel/esb6300/esb6300_uhci.c b/src/southbridge/intel/esb6300/esb6300_uhci.c
index 835a39c2e4..efb106d8f6 100644
--- a/src/southbridge/intel/esb6300/esb6300_uhci.c
+++ b/src/southbridge/intel/esb6300/esb6300_uhci.c
@@ -36,19 +36,19 @@ static struct device_operations uhci_ops = {
.ops_pci = &lops_pci,
};
-static struct pci_driver uhci_driver __pci_driver = {
+static const struct pci_driver uhci_driver __pci_driver = {
.ops = &uhci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_USB,
};
-static struct pci_driver usb2_driver __pci_driver = {
+static const struct pci_driver usb2_driver __pci_driver = {
.ops = &uhci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_USB2,
};
-static struct pci_driver usb3_driver __pci_driver = {
+static const struct pci_driver usb3_driver __pci_driver = {
.ops = &uhci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_6300ESB_USB3,