aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac/i3200_edac.c
diff options
context:
space:
mode:
authorLionel Debroux <lionel_debroux@yahoo.fr>2012-02-27 01:41:47 -0500
committerBorislav Petkov <bp@alien8.de>2012-03-19 07:04:54 -0400
commit36c46f31df910b092aaaed27c7c616bb8e2302a1 (patch)
treecc46fcc301511b0780625d037ac19d24c065ca43 /drivers/edac/i3200_edac.c
parent5e8e19bf6c3c9d8ecf74e2a7fdae99a76949bdf6 (diff)
EDAC: Make pci_device_id tables __devinitconst.
These const tables are currently marked __devinitdata, but Documentation/PCI/pci.txt says: "o The ID table array should be marked __devinitconst; this is done automatically if the table is declared with DEFINE_PCI_DEVICE_TABLE()." So use DEFINE_PCI_DEVICE_TABLE(x). Based on PaX and earlier work by Andi Kleen. Signed-off-by: Lionel Debroux <lionel_debroux@yahoo.fr> Signed-off-by: Borislav Petkov <borislav.petkov@amd.com>
Diffstat (limited to 'drivers/edac/i3200_edac.c')
-rw-r--r--drivers/edac/i3200_edac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/edac/i3200_edac.c b/drivers/edac/i3200_edac.c
index 73f55e2008c2..046808c6357d 100644
--- a/drivers/edac/i3200_edac.c
+++ b/drivers/edac/i3200_edac.c
@@ -445,7 +445,7 @@ static void __devexit i3200_remove_one(struct pci_dev *pdev)
445 edac_mc_free(mci); 445 edac_mc_free(mci);
446} 446}
447 447
448static const struct pci_device_id i3200_pci_tbl[] __devinitdata = { 448static DEFINE_PCI_DEVICE_TABLE(i3200_pci_tbl) = {
449 { 449 {
450 PCI_VEND_DEV(INTEL, 3200_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 450 PCI_VEND_DEV(INTEL, 3200_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
451 I3200}, 451 I3200},