summaryrefslogtreecommitdiff
path: root/src/southbridge/intel/i82801xx
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/i82801xx
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/i82801xx')
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_ac97.c24
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_ide.c14
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_lpc.c14
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_nic.c4
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_pci.c8
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_sata.c4
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_smbus.c12
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_usb.c28
-rw-r--r--src/southbridge/intel/i82801xx/i82801xx_usb_ehci.c4
9 files changed, 56 insertions, 56 deletions
diff --git a/src/southbridge/intel/i82801xx/i82801xx_ac97.c b/src/southbridge/intel/i82801xx/i82801xx_ac97.c
index 2befe4f1ba..14e2b4ae6e 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_ac97.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_ac97.c
@@ -35,78 +35,78 @@ static struct device_operations ac97_ops = {
};
/* 82801AA */
-static struct pci_driver i82801aa_ac97_audio __pci_driver = {
+static const struct pci_driver i82801aa_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2415,
};
-static struct pci_driver i82801aa_ac97_modem __pci_driver = {
+static const struct pci_driver i82801aa_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2416,
};
/* 82801AB */
-static struct pci_driver i82801ab_ac97_audio __pci_driver = {
+static const struct pci_driver i82801ab_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2425,
};
-static struct pci_driver i82801ab_ac97_modem __pci_driver = {
+static const struct pci_driver i82801ab_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2426,
};
/* 82801BA */
-static struct pci_driver i82801ba_ac97_audio __pci_driver = {
+static const struct pci_driver i82801ba_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2445,
};
-static struct pci_driver i82801ba_ac97_modem __pci_driver = {
+static const struct pci_driver i82801ba_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2446,
};
/* 82801CA */
-static struct pci_driver i82801ca_ac97_audio __pci_driver = {
+static const struct pci_driver i82801ca_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2485,
};
-static struct pci_driver i82801ca_ac97_modem __pci_driver = {
+static const struct pci_driver i82801ca_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2486,
};
/* 82801DB & 82801DBM */
-static struct pci_driver i82801db_ac97_audio __pci_driver = {
+static const struct pci_driver i82801db_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c5,
};
-static struct pci_driver i82801db_ac97_modem __pci_driver = {
+static const struct pci_driver i82801db_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c6,
};
/* 82801EB & 82801ER */
-static struct pci_driver i82801ex_ac97_audio __pci_driver = {
+static const struct pci_driver i82801ex_ac97_audio __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d5,
};
-static struct pci_driver i82801ex_ac97_modem __pci_driver = {
+static const struct pci_driver i82801ex_ac97_modem __pci_driver = {
.ops = &ac97_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d6,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_ide.c b/src/southbridge/intel/i82801xx/i82801xx_ide.c
index 6867106eca..ec020fc0d4 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_ide.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_ide.c
@@ -64,49 +64,49 @@ static struct device_operations ide_ops = {
};
/* 82801AA */
-static struct pci_driver i82801aa_ide __pci_driver = {
+static const struct pci_driver i82801aa_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2411,
};
/* 82801AB */
-static struct pci_driver i82801ab_ide __pci_driver = {
+static const struct pci_driver i82801ab_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2421,
};
/* 82801BA */
-static struct pci_driver i82801ba_ide __pci_driver = {
+static const struct pci_driver i82801ba_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x244b,
};
/* 82801CA */
-static struct pci_driver i82801ca_ide __pci_driver = {
+static const struct pci_driver i82801ca_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x248b,
};
/* 82801DB */
-static struct pci_driver i82801db_ide __pci_driver = {
+static const struct pci_driver i82801db_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24cb,
};
/* 82801DBM */
-static struct pci_driver i82801dbm_ide __pci_driver = {
+static const struct pci_driver i82801dbm_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24ca,
};
/* 82801EB & 82801ER */
-static struct pci_driver i82801ex_ide __pci_driver = {
+static const struct pci_driver i82801ex_ide __pci_driver = {
.ops = &ide_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24db,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_lpc.c b/src/southbridge/intel/i82801xx/i82801xx_lpc.c
index e2ae3725a0..6d35c187ec 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_lpc.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_lpc.c
@@ -252,44 +252,44 @@ static struct device_operations lpc_ops = {
.enable = i82801xx_enable,
};
-static struct pci_driver i82801aa_lpc __pci_driver = {
+static const struct pci_driver i82801aa_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2410,
};
-static struct pci_driver i82801ab_lpc __pci_driver = {
+static const struct pci_driver i82801ab_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2420,
};
-static struct pci_driver i82801ba_lpc __pci_driver = {
+static const struct pci_driver i82801ba_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2440,
};
-static struct pci_driver i82801ca_lpc __pci_driver = {
+static const struct pci_driver i82801ca_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2480,
};
-static struct pci_driver i82801db_lpc __pci_driver = {
+static const struct pci_driver i82801db_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c0,
};
-static struct pci_driver i82801dbm_lpc __pci_driver = {
+static const struct pci_driver i82801dbm_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24cc,
};
/* 82801EB and 82801ER */
-static struct pci_driver i82801ex_lpc __pci_driver = {
+static const struct pci_driver i82801ex_lpc __pci_driver = {
.ops = &lpc_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d0,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_nic.c b/src/southbridge/intel/i82801xx/i82801xx_nic.c
index cdba646849..410b36b502 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_nic.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_nic.c
@@ -31,13 +31,13 @@ static struct device_operations nic_ops = {
.scan_bus = 0,
};
-static struct pci_driver i82801dbm_nic __pci_driver = {
+static const struct pci_driver i82801dbm_nic __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x103a,
};
-static struct pci_driver i82801ex_nic __pci_driver = {
+static const struct pci_driver i82801ex_nic __pci_driver = {
.ops = &nic_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x1051,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_pci.c b/src/southbridge/intel/i82801xx/i82801xx_pci.c
index 9ea058e036..58fa2fd939 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_pci.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_pci.c
@@ -47,26 +47,26 @@ static struct device_operations pci_ops = {
.scan_bus = pci_scan_bridge,
};
-static struct pci_driver i82801aa_pci __pci_driver = {
+static const struct pci_driver i82801aa_pci __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2418,
};
-static struct pci_driver i82801ab_pci __pci_driver = {
+static const struct pci_driver i82801ab_pci __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2428,
};
/* 82801BA, 82801CA, 82801DB, 82801EB, and 82801ER */
-static struct pci_driver i82801misc_pci __pci_driver = {
+static const struct pci_driver i82801misc_pci __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x244e,
};
-static struct pci_driver i82801dbm_pci __pci_driver = {
+static const struct pci_driver i82801dbm_pci __pci_driver = {
.ops = &pci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2448,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_sata.c b/src/southbridge/intel/i82801xx/i82801xx_sata.c
index 62542a5b41..782a52f3e8 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_sata.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_sata.c
@@ -69,14 +69,14 @@ static struct device_operations sata_ops = {
};
/* 82801EB */
-static struct pci_driver i82801eb_sata_driver __pci_driver = {
+static const struct pci_driver i82801eb_sata_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d1,
};
/* 82801ER */
-static struct pci_driver i82801er_sata_driver __pci_driver = {
+static const struct pci_driver i82801er_sata_driver __pci_driver = {
.ops = &sata_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24df,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_smbus.c b/src/southbridge/intel/i82801xx/i82801xx_smbus.c
index 3218ef3567..25177e1983 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_smbus.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_smbus.c
@@ -51,42 +51,42 @@ static struct device_operations smbus_ops = {
};
/* 82801AA */
-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 = 0x2413,
};
/* 82801AB */
-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 = 0x2423,
};
/* 82801BA */
-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 = 0x2443,
};
/* 82801CA */
-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 = 0x2483,
};
/* 82801DB and 82801DBM */
-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 = 0x24c3,
};
/* 82801EB and 82801ER */
-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 = 0x24d3,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_usb.c b/src/southbridge/intel/i82801xx/i82801xx_usb.c
index 3fc689db24..bbd951b590 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_usb.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_usb.c
@@ -40,90 +40,90 @@ static struct device_operations usb_ops = {
};
/* 82801AA */
-static struct pci_driver i82801aa_usb_1 __pci_driver = {
+static const struct pci_driver i82801aa_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2412,
};
/* 82801AB */
-static struct pci_driver i82801ab_usb_1 __pci_driver = {
+static const struct pci_driver i82801ab_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2422,
};
/* 82801BA */
-static struct pci_driver i82801ba_usb_1 __pci_driver = {
+static const struct pci_driver i82801ba_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2442,
};
-static struct pci_driver i82801ba_usb_2 __pci_driver = {
+static const struct pci_driver i82801ba_usb_2 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2444,
};
/* 82801CA */
-static struct pci_driver i82801ca_usb_1 __pci_driver = {
+static const struct pci_driver i82801ca_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2482,
};
-static struct pci_driver i82801ca_usb_2 __pci_driver = {
+static const struct pci_driver i82801ca_usb_2 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2484,
};
-static struct pci_driver i82801ca_usb_3 __pci_driver = {
+static const struct pci_driver i82801ca_usb_3 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x2487,
};
/* 82801DB and 82801DBM */
-static struct pci_driver i82801db_usb_1 __pci_driver = {
+static const struct pci_driver i82801db_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c2,
};
-static struct pci_driver i82801db_usb_2 __pci_driver = {
+static const struct pci_driver i82801db_usb_2 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c4,
};
-static struct pci_driver i82801db_usb_3 __pci_driver = {
+static const struct pci_driver i82801db_usb_3 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24c7,
};
/* 82801EB and 82801ER */
-static struct pci_driver i82801ex_usb_1 __pci_driver = {
+static const struct pci_driver i82801ex_usb_1 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d2,
};
-static struct pci_driver i82801ex_usb_2 __pci_driver = {
+static const struct pci_driver i82801ex_usb_2 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d4,
};
-static struct pci_driver i82801ex_usb_3 __pci_driver = {
+static const struct pci_driver i82801ex_usb_3 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24d7,
};
-static struct pci_driver i82801ex_usb_4 __pci_driver = {
+static const struct pci_driver i82801ex_usb_4 __pci_driver = {
.ops = &usb_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24de,
diff --git a/src/southbridge/intel/i82801xx/i82801xx_usb_ehci.c b/src/southbridge/intel/i82801xx/i82801xx_usb_ehci.c
index fd8acc28d8..fe0540c730 100644
--- a/src/southbridge/intel/i82801xx/i82801xx_usb_ehci.c
+++ b/src/southbridge/intel/i82801xx/i82801xx_usb_ehci.c
@@ -71,14 +71,14 @@ static struct device_operations usb_ehci_ops = {
};
/* 82801DB and 82801DBM */
-static struct pci_driver i82801db_usb_ehci __pci_driver = {
+static const struct pci_driver i82801db_usb_ehci __pci_driver = {
.ops = &usb_ehci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24cd,
};
/* 82801EB and 82801ER */
-static struct pci_driver i82801ex_usb_ehci __pci_driver = {
+static const struct pci_driver i82801ex_usb_ehci __pci_driver = {
.ops = &usb_ehci_ops,
.vendor = PCI_VENDOR_ID_INTEL,
.device = 0x24dd,