diff options
author | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-18 19:54:23 -0400 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2014-07-18 19:54:23 -0400 |
commit | 32182cd39d94fa9586cc08c74fdb30fb718f712d (patch) | |
tree | c7aebed0f7bb4163e1128e2ebcdae2dc8da2e19b /drivers/misc | |
parent | 7426d29ea1564c147d8401fb42d6f3d127db6bdd (diff) |
misc: remove DEFINE_PCI_DEVICE_TABLE usage
Removes DEFINE_PCI_DEVICE_TABLE from drivers/misc/genwqe/card_base.c,
drivers/misc/genwqe/card_base.c, and drivers/misc/vmw_vmci/vmci_guest.c
in preferance of a "real" structure definition.
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r-- | drivers/misc/genwqe/card_base.c | 2 | ||||
-rw-r--r-- | drivers/misc/mic/host/mic_main.c | 2 | ||||
-rw-r--r-- | drivers/misc/vmw_vmci/vmci_guest.c | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/drivers/misc/genwqe/card_base.c b/drivers/misc/genwqe/card_base.c index dc8c04ae5113..43bbabc96b6c 100644 --- a/drivers/misc/genwqe/card_base.c +++ b/drivers/misc/genwqe/card_base.c | |||
@@ -57,7 +57,7 @@ static struct dentry *debugfs_genwqe; | |||
57 | static struct genwqe_dev *genwqe_devices[GENWQE_CARD_NO_MAX]; | 57 | static struct genwqe_dev *genwqe_devices[GENWQE_CARD_NO_MAX]; |
58 | 58 | ||
59 | /* PCI structure for identifying device by PCI vendor and device ID */ | 59 | /* PCI structure for identifying device by PCI vendor and device ID */ |
60 | static DEFINE_PCI_DEVICE_TABLE(genwqe_device_table) = { | 60 | static const struct pci_device_id genwqe_device_table[] = { |
61 | { .vendor = PCI_VENDOR_ID_IBM, | 61 | { .vendor = PCI_VENDOR_ID_IBM, |
62 | .device = PCI_DEVICE_GENWQE, | 62 | .device = PCI_DEVICE_GENWQE, |
63 | .subvendor = PCI_SUBVENDOR_ID_IBM, | 63 | .subvendor = PCI_SUBVENDOR_ID_IBM, |
diff --git a/drivers/misc/mic/host/mic_main.c b/drivers/misc/mic/host/mic_main.c index fdc9c13430e7..ab37a3117d23 100644 --- a/drivers/misc/mic/host/mic_main.c +++ b/drivers/misc/mic/host/mic_main.c | |||
@@ -38,7 +38,7 @@ | |||
38 | 38 | ||
39 | static const char mic_driver_name[] = "mic"; | 39 | static const char mic_driver_name[] = "mic"; |
40 | 40 | ||
41 | static DEFINE_PCI_DEVICE_TABLE(mic_pci_tbl) = { | 41 | static const struct pci_device_id mic_pci_tbl[] = { |
42 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2250)}, | 42 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2250)}, |
43 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2251)}, | 43 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2251)}, |
44 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2252)}, | 44 | {PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2252)}, |
diff --git a/drivers/misc/vmw_vmci/vmci_guest.c b/drivers/misc/vmw_vmci/vmci_guest.c index e0d5017785e5..248399a881af 100644 --- a/drivers/misc/vmw_vmci/vmci_guest.c +++ b/drivers/misc/vmw_vmci/vmci_guest.c | |||
@@ -748,7 +748,7 @@ static void vmci_guest_remove_device(struct pci_dev *pdev) | |||
748 | /* The rest are managed resources and will be freed by PCI core */ | 748 | /* The rest are managed resources and will be freed by PCI core */ |
749 | } | 749 | } |
750 | 750 | ||
751 | static DEFINE_PCI_DEVICE_TABLE(vmci_ids) = { | 751 | static const struct pci_device_id vmci_ids[] = { |
752 | { PCI_DEVICE(PCI_VENDOR_ID_VMWARE, PCI_DEVICE_ID_VMWARE_VMCI), }, | 752 | { PCI_DEVICE(PCI_VENDOR_ID_VMWARE, PCI_DEVICE_ID_VMWARE_VMCI), }, |
753 | { 0 }, | 753 | { 0 }, |
754 | }; | 754 | }; |