aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorNeil Brown <neilb@suse.de>2007-07-13 01:39:46 -0400
committerJens Axboe <jens.axboe@oracle.com>2007-07-16 08:39:07 -0400
commit5874c18b105cc7a24972191b7f08a93b1205a425 (patch)
treea7bef9c6e006a42f1550aa1d99aa5a92223efae7
parent51ea208c37a216816e44d31fbdf2c1f1b59e860e (diff)
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: Neil Brown <neilb@suse.de> Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
-rw-r--r--drivers/block/umem.c17
1 files changed, 6 insertions, 11 deletions
diff --git a/drivers/block/umem.c b/drivers/block/umem.c
index 62c9d08f53ce..dec74bd23496 100644
--- a/drivers/block/umem.c
+++ b/drivers/block/umem.c
@@ -1092,23 +1092,18 @@ static void mm_pci_remove(struct pci_dev *dev)
1092 blk_cleanup_queue(card->queue); 1092 blk_cleanup_queue(card->queue);
1093} 1093}
1094 1094
1095static const struct pci_device_id mm_pci_ids[] = { { 1095static const struct pci_device_id mm_pci_ids[] = {
1096 .vendor = PCI_VENDOR_ID_MICRO_MEMORY, 1096 {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_5415CN)},
1097 .device = PCI_DEVICE_ID_MICRO_MEMORY_5415CN, 1097 {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_5425CN)},
1098 }, { 1098 {PCI_DEVICE(PCI_VENDOR_ID_MICRO_MEMORY,PCI_DEVICE_ID_MICRO_MEMORY_6155)},
1099 .vendor = PCI_VENDOR_ID_MICRO_MEMORY, 1099 {
1100 .device = PCI_DEVICE_ID_MICRO_MEMORY_5425CN,
1101 }, {
1102 .vendor = PCI_VENDOR_ID_MICRO_MEMORY,
1103 .device = PCI_DEVICE_ID_MICRO_MEMORY_6155,
1104 }, {
1105 .vendor = 0x8086, 1100 .vendor = 0x8086,
1106 .device = 0xB555, 1101 .device = 0xB555,
1107 .subvendor= 0x1332, 1102 .subvendor= 0x1332,
1108 .subdevice= 0x5460, 1103 .subdevice= 0x5460,
1109 .class = 0x050000, 1104 .class = 0x050000,
1110 .class_mask= 0, 1105 .class_mask= 0,
1111 }, { /* end: all zeroes */ } 1106 }, { /* end: all zeroes */ }
1112}; 1107};
1113 1108
1114MODULE_DEVICE_TABLE(pci, mm_pci_ids); 1109MODULE_DEVICE_TABLE(pci, mm_pci_ids);