diff options
author | Doug Meyer <dmeyer@gigaio.com> | 2018-05-23 13:18:05 -0700 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2018-06-29 20:16:44 -0500 |
commit | cfdfc14e7fb8ae77290e9d5afaeecc0a234a3846 (patch) | |
tree | 31f4479c396f95dea770e8e3992fdc8abaa65342 /drivers/ntb/hw/mscc | |
parent | ce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff) | |
download | linux-cfdfc14e7fb8ae77290e9d5afaeecc0a234a3846.tar.gz linux-cfdfc14e7fb8ae77290e9d5afaeecc0a234a3846.tar.bz2 linux-cfdfc14e7fb8ae77290e9d5afaeecc0a234a3846.zip |
switchtec: Use generic PCI Vendor ID and Class Code
Move the Microsemi Switchtec PCI Vendor ID (same as
PCI_VENDOR_ID_PMC_Sierra) to pci_ids.h. Also, replace Microsemi class
constants with the standard PCI definitions.
Signed-off-by: Doug Meyer <dmeyer@gigaio.com>
[bhelgaas: restore SPDX (I assume it was removed by mistake), remove
device ID definitions]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Logan Gunthorpe <logang@deltatee.com>
Diffstat (limited to 'drivers/ntb/hw/mscc')
-rw-r--r-- | drivers/ntb/hw/mscc/ntb_hw_switchtec.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c index f624ae27eabe..5ee5f40b4dfc 100644 --- a/drivers/ntb/hw/mscc/ntb_hw_switchtec.c +++ b/drivers/ntb/hw/mscc/ntb_hw_switchtec.c @@ -19,6 +19,7 @@ #include <linux/kthread.h> #include <linux/interrupt.h> #include <linux/ntb.h> +#include <linux/pci.h> MODULE_DESCRIPTION("Microsemi Switchtec(tm) NTB Driver"); MODULE_VERSION("0.1"); @@ -1487,7 +1488,7 @@ static int switchtec_ntb_add(struct device *dev, stdev->sndev = NULL; - if (stdev->pdev->class != MICROSEMI_NTB_CLASSCODE) + if (stdev->pdev->class != (PCI_CLASS_BRIDGE_OTHER << 8)) return -ENODEV; sndev = kzalloc_node(sizeof(*sndev), GFP_KERNEL, dev_to_node(dev)); |