Message ID | 20191128125406.10417-2-info@metux.net (mailing list archive) |
---|---|
State | Not Applicable |
Headers | show |
Series | [1/6] include: linux: pci.h: introduce pci_get_device_by_id() | expand |
diff --git a/drivers/mtd/maps/esb2rom.c b/drivers/mtd/maps/esb2rom.c index 5c27c6994896..0c638ac6ad82 100644 --- a/drivers/mtd/maps/esb2rom.c +++ b/drivers/mtd/maps/esb2rom.c @@ -421,7 +421,7 @@ static int __init init_esb2rom(void) pdev = NULL; for (id = esb2rom_pci_tbl; id->vendor; id++) { printk(KERN_DEBUG "device id = %x\n", id->device); - pdev = pci_get_device(id->vendor, id->device, NULL); + pdev = pci_get_device_by_id(id); if (pdev) { printk(KERN_DEBUG "matched device = %x\n", id->device); break;