提交 5874c18b 编写于 作者: N Neil Brown 提交者: Jens Axboe

umem: Fix match of pci_ids in umem driver

the pci device list for umem was not using PCI_DEVICE, so the
subvendor/subdevice fields were not set to ANY, so matching
didn't work properly.

Change to use PCI_DEVICE.
Signed-off-by: NNeil Brown <neilb@suse.de>
Signed-off-by: NJens Axboe <jens.axboe@oracle.com>
上级 51ea208c
...@@ -1092,23 +1092,18 @@ static void mm_pci_remove(struct pci_dev *dev) ...@@ -1092,23 +1092,18 @@ static void mm_pci_remove(struct pci_dev *dev)
blk_cleanup_queue(card->queue); blk_cleanup_queue(card->queue);
} }
static const struct pci_device_id mm_pci_ids[] = { { static const struct pci_device_id mm_pci_ids[] = {
.vendor = PCI_VENDOR_ID_MICRO_MEMORY, {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_5415CN)},
.device = PCI_DEVICE_ID_MICRO_MEMORY_5415CN, {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_5425CN)},
}, { {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_6155)},
.vendor = PCI_VENDOR_ID_MICRO_MEMORY, {
.device = PCI_DEVICE_ID_MICRO_MEMORY_5425CN,
}, {
.vendor = PCI_VENDOR_ID_MICRO_MEMORY,
.device = PCI_DEVICE_ID_MICRO_MEMORY_6155,
}, {
.vendor = 0x8086, .vendor = 0x8086,
.device = 0xB555, .device = 0xB555,
.subvendor= 0x1332, .subvendor= 0x1332,
.subdevice= 0x5460, .subdevice= 0x5460,
.class = 0x050000, .class = 0x050000,
.class_mask= 0, .class_mask= 0,
}, { /* end: all zeroes */ } }, { /* end: all zeroes */ }
}; };
MODULE_DEVICE_TABLE(pci, mm_pci_ids); MODULE_DEVICE_TABLE(pci, mm_pci_ids);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册