diff options
author | Lionel Debroux <lionel_debroux@yahoo.fr> | 2012-02-27 01:41:47 -0500 |
---|---|---|
committer | Borislav Petkov <bp@alien8.de> | 2012-03-19 07:04:54 -0400 |
commit | 36c46f31df910b092aaaed27c7c616bb8e2302a1 (patch) | |
tree | cc46fcc301511b0780625d037ac19d24c065ca43 /drivers/edac/r82600_edac.c | |
parent | 5e8e19bf6c3c9d8ecf74e2a7fdae99a76949bdf6 (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/r82600_edac.c')
-rw-r--r-- | drivers/edac/r82600_edac.c | 2 |
1 files changed, 1 insertions, 1 deletions
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 | ||
376 | static const struct pci_device_id r82600_pci_tbl[] __devinitdata = { | 376 | static 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 | }, |