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>
This commit is contained in:

committed by
Borislav Petkov

parent
5e8e19bf6c
commit
36c46f31df
@@ -1051,7 +1051,7 @@ static void __devexit i5100_remove_one(struct pci_dev *pdev)
|
||||
edac_mc_free(mci);
|
||||
}
|
||||
|
||||
static const struct pci_device_id i5100_pci_tbl[] __devinitdata = {
|
||||
static DEFINE_PCI_DEVICE_TABLE(i5100_pci_tbl) = {
|
||||
/* Device 16, Function 0, Channel 0 Memory Map, Error Flag/Mask, ... */
|
||||
{ PCI_DEVICE(PCI_VENDOR_ID_INTEL, PCI_DEVICE_ID_INTEL_5100_16) },
|
||||
{ 0, }
|
||||
|
Reference in New Issue
Block a user