bnxt_en: Reject driver probe against all bridge devices

There are additional SoC devices that use the same device ID for
bridge and NIC devices.  The bnxt driver should reject probe against
all bridge devices since it's meant to be used with only endpoint
devices.

Signed-off-by: Ray Jui <ray.jui@broadcom.com>
Signed-off-by: Michael Chan <michael.chan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
Ray Jui 2017-02-20 19:25:16 -05:00 committed by David S. Miller
parent 5a4dcdcac8
commit 4e00338a61
1 changed files with 1 additions and 1 deletions

View File

@ -7400,7 +7400,7 @@ static int bnxt_init_one(struct pci_dev *pdev, const struct pci_device_id *ent)
struct bnxt *bp;
int rc, max_irqs;
if (pdev->device == 0x16cd && pci_is_bridge(pdev))
if (pci_is_bridge(pdev))
return -ENODEV;
if (version_printed++ == 0)