bnxt_en: Reject driver probe against all bridge devices
authorRay Jui <ray.jui@broadcom.com>
Tue, 21 Feb 2017 00:25:16 +0000 (19:25 -0500)
committerDavid S. Miller <davem@davemloft.net>
Tue, 21 Feb 2017 02:59:15 +0000 (21:59 -0500)
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>
drivers/net/ethernet/broadcom/bnxt/bnxt.c

index 71f9a1894db95652e65a4399af95ea98791221d0..f4dec1bdd911752ce9406b7012bb9af2f9d00b22 100644 (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)