From: Johannes Thumshirn Date: Mon, 12 Mar 2018 09:41:19 +0000 (+0100) Subject: mcb: Add Altera PCI ID to mcb-pci X-Git-Url: http://git.cdn.openwrt.org/?a=commitdiff_plain;h=66e3339df52a10da9e88c2072f26358150965088;p=openwrt%2Fstaging%2Fblogic.git mcb: Add Altera PCI ID to mcb-pci Some older PCI-attached MEN FPGAs use an Altera PCI Vendor ID instead of the MEN one. Add it to the PCI ID table so the driver automatically attaches to it. Reported-by: Ben Turner Tested-by: Ben Turner Signed-off-by: Johannes Thumshirn Signed-off-by: Bjorn Helgaas Reviewed-by: Andy Shevchenko Cc: Andreas Geißler --- diff --git a/drivers/mcb/mcb-pci.c b/drivers/mcb/mcb-pci.c index af4d2f26f1c6..c2d69e33bf2b 100644 --- a/drivers/mcb/mcb-pci.c +++ b/drivers/mcb/mcb-pci.c @@ -117,6 +117,7 @@ static void mcb_pci_remove(struct pci_dev *pdev) static const struct pci_device_id mcb_pci_tbl[] = { { PCI_DEVICE(PCI_VENDOR_ID_MEN, PCI_DEVICE_ID_MEN_CHAMELEON) }, + { PCI_DEVICE(PCI_VENDOR_ID_ALTERA, PCI_DEVICE_ID_MEN_CHAMELEON) }, { 0 }, }; MODULE_DEVICE_TABLE(pci, mcb_pci_tbl);