aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/edac
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
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')
-rw-r--r--drivers/edac/amd64_edac.c2
-rw-r--r--drivers/edac/amd76x_edac.c2
-rw-r--r--drivers/edac/e752x_edac.c2
-rw-r--r--drivers/edac/e7xxx_edac.c2
-rw-r--r--drivers/edac/i3000_edac.c2
-rw-r--r--drivers/edac/i3200_edac.c2
-rw-r--r--drivers/edac/i5000_edac.c2
-rw-r--r--drivers/edac/i5100_edac.c2
-rw-r--r--drivers/edac/i5400_edac.c2
-rw-r--r--drivers/edac/i7300_edac.c2
-rw-r--r--drivers/edac/i7core_edac.c2
-rw-r--r--drivers/edac/i82443bxgx_edac.c2
-rw-r--r--drivers/edac/i82860_edac.c2
-rw-r--r--drivers/edac/i82875p_edac.c2
-rw-r--r--drivers/edac/i82975x_edac.c2
-rw-r--r--drivers/edac/r82600_edac.c2
-rw-r--r--drivers/edac/sb_edac.c2
-rw-r--r--drivers/edac/x38_edac.c2
18 files changed, 18 insertions, 18 deletions
diff --git a/drivers/edac/amd64_edac.c b/drivers/edac/amd64_edac.c
index 03807283aca4..7ef73c919c5d 100644
--- a/drivers/edac/amd64_edac.c
+++ b/drivers/edac/amd64_edac.c
@@ -2707,7 +2707,7 @@ static void __devexit amd64_remove_one_instance(struct pci_dev *pdev)
2707 * PCI core identifies what devices are on a system during boot, and then 2707 * PCI core identifies what devices are on a system during boot, and then
2708 * inquiry this table to see if this driver is for a given device found. 2708 * inquiry this table to see if this driver is for a given device found.
2709 */ 2709 */
2710static const struct pci_device_id amd64_pci_table[] __devinitdata = { 2710static DEFINE_PCI_DEVICE_TABLE(amd64_pci_table) = {
2711 { 2711 {
2712 .vendor = PCI_VENDOR_ID_AMD, 2712 .vendor = PCI_VENDOR_ID_AMD,
2713 .device = PCI_DEVICE_ID_AMD_K8_NB_MEMCTL, 2713 .device = PCI_DEVICE_ID_AMD_K8_NB_MEMCTL,
diff --git a/drivers/edac/amd76x_edac.c b/drivers/edac/amd76x_edac.c
index e47e73bbbcc5..f8fd3c807bde 100644
--- a/drivers/edac/amd76x_edac.c
+++ b/drivers/edac/amd76x_edac.c
@@ -321,7 +321,7 @@ static void __devexit amd76x_remove_one(struct pci_dev *pdev)
321 edac_mc_free(mci); 321 edac_mc_free(mci);
322} 322}
323 323
324static const struct pci_device_id amd76x_pci_tbl[] __devinitdata = { 324static DEFINE_PCI_DEVICE_TABLE(amd76x_pci_tbl) = {
325 { 325 {
326 PCI_VEND_DEV(AMD, FE_GATE_700C), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 326 PCI_VEND_DEV(AMD, FE_GATE_700C), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
327 AMD762}, 327 AMD762},
diff --git a/drivers/edac/e752x_edac.c b/drivers/edac/e752x_edac.c
index 1af531a11d21..41223261ede9 100644
--- a/drivers/edac/e752x_edac.c
+++ b/drivers/edac/e752x_edac.c
@@ -1380,7 +1380,7 @@ static void __devexit e752x_remove_one(struct pci_dev *pdev)
1380 edac_mc_free(mci); 1380 edac_mc_free(mci);
1381} 1381}
1382 1382
1383static const struct pci_device_id e752x_pci_tbl[] __devinitdata = { 1383static DEFINE_PCI_DEVICE_TABLE(e752x_pci_tbl) = {
1384 { 1384 {
1385 PCI_VEND_DEV(INTEL, 7520_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 1385 PCI_VEND_DEV(INTEL, 7520_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
1386 E7520}, 1386 E7520},
diff --git a/drivers/edac/e7xxx_edac.c b/drivers/edac/e7xxx_edac.c
index 6ffb6d23281f..68dea87b72e6 100644
--- a/drivers/edac/e7xxx_edac.c
+++ b/drivers/edac/e7xxx_edac.c
@@ -525,7 +525,7 @@ static void __devexit e7xxx_remove_one(struct pci_dev *pdev)
525 edac_mc_free(mci); 525 edac_mc_free(mci);
526} 526}
527 527
528static const struct pci_device_id e7xxx_pci_tbl[] __devinitdata = { 528static DEFINE_PCI_DEVICE_TABLE(e7xxx_pci_tbl) = {
529 { 529 {
530 PCI_VEND_DEV(INTEL, 7205_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 530 PCI_VEND_DEV(INTEL, 7205_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
531 E7205}, 531 E7205},
diff --git a/drivers/edac/i3000_edac.c b/drivers/edac/i3000_edac.c
index c0510b3d7035..277689a68841 100644
--- a/drivers/edac/i3000_edac.c
+++ b/drivers/edac/i3000_edac.c
@@ -470,7 +470,7 @@ static void __devexit i3000_remove_one(struct pci_dev *pdev)
470 edac_mc_free(mci); 470 edac_mc_free(mci);
471} 471}
472 472
473static const struct pci_device_id i3000_pci_tbl[] __devinitdata = { 473static DEFINE_PCI_DEVICE_TABLE(i3000_pci_tbl) = {
474 { 474 {
475 PCI_VEND_DEV(INTEL, 3000_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 475 PCI_VEND_DEV(INTEL, 3000_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
476 I3000}, 476 I3000},
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},
diff --git a/drivers/edac/i5000_edac.c b/drivers/edac/i5000_edac.c
index 4dc3ac25a422..a2680d8e744b 100644
--- a/drivers/edac/i5000_edac.c
+++ b/drivers/edac/i5000_edac.c
@@ -1516,7 +1516,7 @@ static void __devexit i5000_remove_one(struct pci_dev *pdev)
1516 * 1516 *
1517 * The "E500P" device is the first device supported. 1517 * The "E500P" device is the first device supported.
1518 */ 1518 */
1519static const struct pci_device_id i5000_pci_tbl[] __devinitdata = { 1519static DEFINE_PCI_DEVICE_TABLE(i5000_pci_tbl) = {
1520 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000_DEV16), 1520 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I5000_DEV16),
1521 .driver_data = I5000P}, 1521 .driver_data = I5000P},
1522 1522
diff --git a/drivers/edac/i5100_edac.c b/drivers/edac/i5100_edac.c
index bcbdeeca48b8..2e23547b2f24 100644
--- a/drivers/edac/i5100_edac.c
+++ b/drivers/edac/i5100_edac.c
@@ -1051,7 +1051,7 @@ static void __devexit i5100_remove_one(struct pci_dev *pdev)
1051 edac_mc_free(mci); 1051 edac_mc_free(mci);
1052} 1052}
1053 1053
1054static const struct pci_device_id i5100_pci_tbl[] __devinitdata = { 1054static DEFINE_PCI_DEVICE_TABLE(i5100_pci_tbl) = {
1055 /* Device 16, Function 0, Channel 0 Memory Map, Error Flag/Mask, ... */ 1055 /* Device 16, Function 0, Channel 0 Memory Map, Error Flag/Mask, ... */
1056 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5100_16) }, 1056 { PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5100_16) },
1057 { 0, } 1057 { 0, }
diff --git a/drivers/edac/i5400_edac.c b/drivers/edac/i5400_edac.c
index 74d6ec342afb..67ec9626a330 100644
--- a/drivers/edac/i5400_edac.c
+++ b/drivers/edac/i5400_edac.c
@@ -1383,7 +1383,7 @@ static void __devexit i5400_remove_one(struct pci_dev *pdev)
1383 * 1383 *
1384 * The "E500P" device is the first device supported. 1384 * The "E500P" device is the first device supported.
1385 */ 1385 */
1386static const struct pci_device_id i5400_pci_tbl[] __devinitdata = { 1386static DEFINE_PCI_DEVICE_TABLE(i5400_pci_tbl) = {
1387 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR)}, 1387 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5400_ERR)},
1388 {0,} /* 0 terminated list. */ 1388 {0,} /* 0 terminated list. */
1389}; 1389};
diff --git a/drivers/edac/i7300_edac.c b/drivers/edac/i7300_edac.c
index 6104dba380b6..3bafa3bca148 100644
--- a/drivers/edac/i7300_edac.c
+++ b/drivers/edac/i7300_edac.c
@@ -1192,7 +1192,7 @@ static void __devexit i7300_remove_one(struct pci_dev *pdev)
1192 * 1192 *
1193 * Has only 8086:360c PCI ID 1193 * Has only 8086:360c PCI ID
1194 */ 1194 */
1195static const struct pci_device_id i7300_pci_tbl[] __devinitdata = { 1195static DEFINE_PCI_DEVICE_TABLE(i7300_pci_tbl) = {
1196 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I7300_MCH_ERR)}, 1196 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_I7300_MCH_ERR)},
1197 {0,} /* 0 terminated list. */ 1197 {0,} /* 0 terminated list. */
1198}; 1198};
diff --git a/drivers/edac/i7core_edac.c b/drivers/edac/i7core_edac.c
index 8568d9b61875..85226ccf5290 100644
--- a/drivers/edac/i7core_edac.c
+++ b/drivers/edac/i7core_edac.c
@@ -391,7 +391,7 @@ static const struct pci_id_table pci_dev_table[] = {
391/* 391/*
392 * pci_device_id table for which devices we are looking for 392 * pci_device_id table for which devices we are looking for
393 */ 393 */
394static const struct pci_device_id i7core_pci_tbl[] __devinitdata = { 394static DEFINE_PCI_DEVICE_TABLE(i7core_pci_tbl) = {
395 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)}, 395 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_X58_HUB_MGMT)},
396 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)}, 396 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_LYNNFIELD_QPI_LINK0)},
397 {0,} /* 0 terminated list. */ 397 {0,} /* 0 terminated list. */
diff --git a/drivers/edac/i82443bxgx_edac.c b/drivers/edac/i82443bxgx_edac.c
index 4329d39f902c..3bf2b2f490e7 100644
--- a/drivers/edac/i82443bxgx_edac.c
+++ b/drivers/edac/i82443bxgx_edac.c
@@ -380,7 +380,7 @@ static void __devexit i82443bxgx_edacmc_remove_one(struct pci_dev *pdev)
380 380
381EXPORT_SYMBOL_GPL(i82443bxgx_edacmc_remove_one); 381EXPORT_SYMBOL_GPL(i82443bxgx_edacmc_remove_one);
382 382
383static const struct pci_device_id i82443bxgx_pci_tbl[] __devinitdata = { 383static DEFINE_PCI_DEVICE_TABLE(i82443bxgx_pci_tbl) = {
384 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_0)}, 384 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_0)},
385 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_2)}, 385 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443BX_2)},
386 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443GX_0)}, 386 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_82443GX_0)},
diff --git a/drivers/edac/i82860_edac.c b/drivers/edac/i82860_edac.c
index 931a05775049..c779092d18d1 100644
--- a/drivers/edac/i82860_edac.c
+++ b/drivers/edac/i82860_edac.c
@@ -270,7 +270,7 @@ static void __devexit i82860_remove_one(struct pci_dev *pdev)
270 edac_mc_free(mci); 270 edac_mc_free(mci);
271} 271}
272 272
273static const struct pci_device_id i82860_pci_tbl[] __devinitdata = { 273static DEFINE_PCI_DEVICE_TABLE(i82860_pci_tbl) = {
274 { 274 {
275 PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 275 PCI_VEND_DEV(INTEL, 82860_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
276 I82860}, 276 I82860},
diff --git a/drivers/edac/i82875p_edac.c b/drivers/edac/i82875p_edac.c
index 33864c63c684..10f15d85fb5e 100644
--- a/drivers/edac/i82875p_edac.c
+++ b/drivers/edac/i82875p_edac.c
@@ -511,7 +511,7 @@ static void __devexit i82875p_remove_one(struct pci_dev *pdev)
511 edac_mc_free(mci); 511 edac_mc_free(mci);
512} 512}
513 513
514static const struct pci_device_id i82875p_pci_tbl[] __devinitdata = { 514static DEFINE_PCI_DEVICE_TABLE(i82875p_pci_tbl) = {
515 { 515 {
516 PCI_VEND_DEV(INTEL, 82875_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 516 PCI_VEND_DEV(INTEL, 82875_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
517 I82875P}, 517 I82875P},
diff --git a/drivers/edac/i82975x_edac.c b/drivers/edac/i82975x_edac.c
index 4184e0171f00..0cd8368f88f8 100644
--- a/drivers/edac/i82975x_edac.c
+++ b/drivers/edac/i82975x_edac.c
@@ -612,7 +612,7 @@ static void __devexit i82975x_remove_one(struct pci_dev *pdev)
612 edac_mc_free(mci); 612 edac_mc_free(mci);
613} 613}
614 614
615static const struct pci_device_id i82975x_pci_tbl[] __devinitdata = { 615static DEFINE_PCI_DEVICE_TABLE(i82975x_pci_tbl) = {
616 { 616 {
617 PCI_VEND_DEV(INTEL, 82975_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 617 PCI_VEND_DEV(INTEL, 82975_0), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
618 I82975X 618 I82975X
diff --git a/drivers/edac/r82600_edac.c b/drivers/edac/r82600_edac.c
index e294e1b3616c..6d908ad72d64 100644
--- a/drivers/edac/r82600_edac.c
+++ b/drivers/edac/r82600_edac.c
@@ -373,7 +373,7 @@ static void __devexit r82600_remove_one(struct pci_dev *pdev)
373 edac_mc_free(mci); 373 edac_mc_free(mci);
374} 374}
375 375
376static const struct pci_device_id r82600_pci_tbl[] __devinitdata = { 376static DEFINE_PCI_DEVICE_TABLE(r82600_pci_tbl) = {
377 { 377 {
378 PCI_DEVICE(PCI_VENDOR_ID_RADISYS, R82600_BRIDGE_ID) 378 PCI_DEVICE(PCI_VENDOR_ID_RADISYS, R82600_BRIDGE_ID)
379 }, 379 },
diff --git a/drivers/edac/sb_edac.c b/drivers/edac/sb_edac.c
index 1dc118d83cc6..3a605f777712 100644
--- a/drivers/edac/sb_edac.c
+++ b/drivers/edac/sb_edac.c
@@ -367,7 +367,7 @@ static const struct pci_id_table pci_dev_descr_sbridge_table[] = {
367/* 367/*
368 * pci_device_id table for which devices we are looking for 368 * pci_device_id table for which devices we are looking for
369 */ 369 */
370static const struct pci_device_id sbridge_pci_tbl[] __devinitdata = { 370static DEFINE_PCI_DEVICE_TABLE(sbridge_pci_tbl) = {
371 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA)}, 371 {PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_SBRIDGE_IMC_TA)},
372 {0,} /* 0 terminated list. */ 372 {0,} /* 0 terminated list. */
373}; 373};
diff --git a/drivers/edac/x38_edac.c b/drivers/edac/x38_edac.c
index b6f47de152f3..a438297389e5 100644
--- a/drivers/edac/x38_edac.c
+++ b/drivers/edac/x38_edac.c
@@ -440,7 +440,7 @@ static void __devexit x38_remove_one(struct pci_dev *pdev)
440 edac_mc_free(mci); 440 edac_mc_free(mci);
441} 441}
442 442
443static const struct pci_device_id x38_pci_tbl[] __devinitdata = { 443static DEFINE_PCI_DEVICE_TABLE(x38_pci_tbl) = {
444 { 444 {
445 PCI_VEND_DEV(INTEL, X38_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0, 445 PCI_VEND_DEV(INTEL, X38_HB), PCI_ANY_ID, PCI_ANY_ID, 0, 0,
446 X38}, 446 X38},