Commit 37f4f5df authored by Federico Vaga's avatar Federico Vaga

kernel: DEFINE_PCI_DEVICE_TABLE deprecated

The following patch deprecated the macro DEFINE_PCI_DEVICE_TABLE
in favor of using directly the structure type

------------------
commit 92e112fdbb3cb55b43390426501a7efacd893b96
Author: Joe Perches <joe@perches.com>
Date:   Fri Dec 13 11:36:22 2013 -0700

    PCI/checkpatch: Deprecate DEFINE_PCI_DEVICE_TABLE
------------------
Signed-off-by: Federico Vaga's avatarFederico Vaga <federico.vaga@cern.ch>
parent a33efeca
......@@ -307,8 +307,7 @@ static void spec_remove(struct pci_dev *pdev)
}
DEFINE_PCI_DEVICE_TABLE(spec_idtable) = {
static const struct pci_device_id spec_idtable[] = {
{ PCI_DEVICE(PCI_VENDOR_ID_CERN, PCI_DEVICE_ID_SPEC_45T) },
{ PCI_DEVICE(PCI_VENDOR_ID_CERN, PCI_DEVICE_ID_SPEC_100T) },
{ PCI_DEVICE(PCI_VENDOR_ID_GENNUM, PCI_DEVICE_ID_GN4124) },
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment