Skip to content

Commit 32182cd

Browse files
committed
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>
1 parent 7426d29 commit 32182cd

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

‎drivers/misc/genwqe/card_base.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ static struct dentry *debugfs_genwqe;
5757
static struct genwqe_dev *genwqe_devices[GENWQE_CARD_NO_MAX];
5858

5959
/* 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[] = {
6161
{ .vendor = PCI_VENDOR_ID_IBM,
6262
.device = PCI_DEVICE_GENWQE,
6363
.subvendor = PCI_SUBVENDOR_ID_IBM,

‎drivers/misc/mic/host/mic_main.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838

3939
static const char mic_driver_name[] = "mic";
4040

41-
static DEFINE_PCI_DEVICE_TABLE(mic_pci_tbl) = {
41+
static const struct pci_device_id mic_pci_tbl[] = {
4242
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2250)},
4343
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2251)},
4444
{PCI_DEVICE(PCI_VENDOR_ID_INTEL, MIC_X100_PCI_DEVICE_2252)},

‎drivers/misc/vmw_vmci/vmci_guest.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,7 @@ static void vmci_guest_remove_device(struct pci_dev *pdev)
748748
/* The rest are managed resources and will be freed by PCI core */
749749
}
750750

751-
static DEFINE_PCI_DEVICE_TABLE(vmci_ids) = {
751+
static const struct pci_device_id vmci_ids[] = {
752752
{ PCI_DEVICE(PCI_VENDOR_ID_VMWARE, PCI_DEVICE_ID_VMWARE_VMCI), },
753753
{ 0 },
754754
};

0 commit comments

Comments
 (0)