summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801db
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/i82801db
parent0dff6e3fa95ea13f6ee6cb2d4277e83076d81bad (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/intel/i82801db')
-rw-r--r--src/southbridge/intel/i82801db/i82801db_ac97.c4
-rw-r--r--src/southbridge/intel/i82801db/i82801db_ehci.c2
-rw-r--r--src/southbridge/intel/i82801db/i82801db_ide.c2
-rw-r--r--src/southbridge/intel/i82801db/i82801db_lpc.c2
-rw-r--r--src/southbridge/intel/i82801db/i82801db_pci.c2
-rw-r--r--src/southbridge/intel/i82801db/i82801db_smbus.c2
-rw-r--r--src/southbridge/intel/i82801db/i82801db_uhci.c6
7 files changed, 10 insertions, 10 deletions
diff --git a/src/southbridge/intel/i82801db/i82801db_ac97.c b/src/southbridge/intel/i82801db/i82801db_ac97.c
index b1f8980c20..7943198948 100644
--- a/src/southbridge/intel/i82801db/i82801db_ac97.c
+++ b/src/southbridge/intel/i82801db/i82801db_ac97.c
@@ -43,12 +43,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_82801DB_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_82801DB_AC97_MODEM,
diff --git a/src/southbridge/intel/i82801db/i82801db_ehci.c b/src/southbridge/intel/i82801db/i82801db_ehci.c
index 48b2b0b062..15365075ce 100644
--- a/src/southbridge/intel/i82801db/i82801db_ehci.c
+++ b/src/southbridge/intel/i82801db/i82801db_ehci.c
@@ -61,7 +61,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_82801DB_EHCI,
diff --git a/src/southbridge/intel/i82801db/i82801db_ide.c b/src/southbridge/intel/i82801db/i82801db_ide.c
index 87cb2c321b..1b5cdd578c 100644
--- a/src/southbridge/intel/i82801db/i82801db_ide.c
+++ b/src/southbridge/intel/i82801db/i82801db_ide.c
@@ -67,7 +67,7 @@ static struct device_operations ide_ops = {
.scan_bus = 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_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801DB_IDE,
diff --git a/src/southbridge/intel/i82801db/i82801db_lpc.c b/src/southbridge/intel/i82801db/i82801db_lpc.c
index d44d8290b8..fbc8805bd2 100644
--- a/src/southbridge/intel/i82801db/i82801db_lpc.c
+++ b/src/southbridge/intel/i82801db/i82801db_lpc.c
@@ -409,7 +409,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_82801DB_ISA,
diff --git a/src/southbridge/intel/i82801db/i82801db_pci.c b/src/southbridge/intel/i82801db/i82801db_pci.c
index 82a2f4ed32..e110dce370 100644
--- a/src/southbridge/intel/i82801db/i82801db_pci.c
+++ b/src/southbridge/intel/i82801db/i82801db_pci.c
@@ -55,7 +55,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_82801DB_PCI,
diff --git a/src/southbridge/intel/i82801db/i82801db_smbus.c b/src/southbridge/intel/i82801db/i82801db_smbus.c
index c6806afa67..5b32bbbc03 100644
--- a/src/southbridge/intel/i82801db/i82801db_smbus.c
+++ b/src/southbridge/intel/i82801db/i82801db_smbus.c
@@ -55,7 +55,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_82801DB_SMB,
diff --git a/src/southbridge/intel/i82801db/i82801db_uhci.c b/src/southbridge/intel/i82801db/i82801db_uhci.c
index 40f711f6ee..6b214e846b 100644
--- a/src/southbridge/intel/i82801db/i82801db_uhci.c
+++ b/src/southbridge/intel/i82801db/i82801db_uhci.c
@@ -54,19 +54,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_82801DB_USB0,
};
-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_82801DB_USB1,
};
-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_82801DB_USB2,