summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801dbm
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/i82801dbm
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/i82801dbm')
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_ac97.c4
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_ide.c2
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_lpc.c2
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_nic.c2
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_pci.c2
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_sata.c2
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_usb.c8
-rw-r--r--src/southbridge/intel/i82801dbm/i82801dbm_usb2.c2
8 files changed, 12 insertions, 12 deletions
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_ac97.c b/src/southbridge/intel/i82801dbm/i82801dbm_ac97.c
index a1bbc54767..a524b95142 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_ac97.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_ac97.c
@@ -18,7 +18,7 @@ static struct device_operations ac97audio_ops = {
.scan_bus = 0,
};
-static struct pci_driver ac97audio_driver __pci_driver = {
+static const struct pci_driver ac97audio_driver __pci_driver = {
.ops = &ac97audio_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801DBM_1F5,
@@ -34,7 +34,7 @@ static struct device_operations ac97modem_ops = {
.scan_bus = 0,
};
-static struct pci_driver ac97modem_driver __pci_driver = {
+static const struct pci_driver ac97modem_driver __pci_driver = {
.ops = &ac97modem_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801DBM_1F6,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_ide.c b/src/southbridge/intel/i82801dbm/i82801dbm_ide.c
index 6bf76d52b1..4bb0d464e8 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_ide.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_ide.c
@@ -45,7 +45,7 @@ static struct device_operations ide_ops = {
.enable = i82801dbm_enable,
};
-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_82801ER_1F1,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_lpc.c b/src/southbridge/intel/i82801dbm/i82801dbm_lpc.c
index c2135c0183..ba48718d6d 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_lpc.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_lpc.c
@@ -208,7 +208,7 @@ static struct device_operations lpc_ops = {
.enable = i82801dbm_enable,
};
-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_82801DBM_1F0,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_nic.c b/src/southbridge/intel/i82801dbm/i82801dbm_nic.c
index 1c1837c186..e25f1bcaf7 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_nic.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_nic.c
@@ -14,7 +14,7 @@ static struct device_operations nic_ops = {
.scan_bus = 0,
};
-static struct pci_driver nic_driver __pci_driver = {
+static const struct pci_driver nic_driver __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x103a,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_pci.c b/src/southbridge/intel/i82801dbm/i82801dbm_pci.c
index 6dbc83c7ca..ca3b34738b 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_pci.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_pci.c
@@ -25,7 +25,7 @@ static struct device_operations pci_ops = {
.scan_bus = pci_scan_bridge,
};
-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_82801DBM_1E0,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_sata.c b/src/southbridge/intel/i82801dbm/i82801dbm_sata.c
index 4421859946..5b567c1507 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_sata.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_sata.c
@@ -67,7 +67,7 @@ static struct device_operations sata_ops = {
.enable = i82801dbm_enable,
};
-static struct pci_driver stat_driver __pci_driver = {
+static const struct pci_driver stat_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1F2_R,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_usb.c b/src/southbridge/intel/i82801dbm/i82801dbm_usb.c
index 0c20e532d0..a14b6aa53e 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_usb.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_usb.c
@@ -32,22 +32,22 @@ static struct device_operations usb_ops = {
.enable = i82801dbm_enable,
};
-static struct pci_driver usb_driver_1 __pci_driver = {
+static const struct pci_driver usb_driver_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1D0,
};
-static struct pci_driver usb_driver_2 __pci_driver = {
+static const struct pci_driver usb_driver_2 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1D1,
};
-static struct pci_driver usb_driver_3 __pci_driver = {
+static const struct pci_driver usb_driver_3 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1D2,
};
-static struct pci_driver usb_driver_4 __pci_driver = {
+static const struct pci_driver usb_driver_4 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1D3,
diff --git a/src/southbridge/intel/i82801dbm/i82801dbm_usb2.c b/src/southbridge/intel/i82801dbm/i82801dbm_usb2.c
index 52958e3a39..03ff797205 100644
--- a/src/southbridge/intel/i82801dbm/i82801dbm_usb2.c
+++ b/src/southbridge/intel/i82801dbm/i82801dbm_usb2.c
@@ -33,7 +33,7 @@ static struct device_operations usb2_ops = {
.enable = i82801dbm_enable,
};
-static struct pci_driver usb2_driver __pci_driver = {
+static const struct pci_driver usb2_driver __pci_driver = {
.ops = &usb2_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = PCI_DEVICE_ID_INTEL_82801ER_1D7,