summaryrefslogtreecommitdiffstats
path: root/drivers/crypto/qat/qat_c3xxx
diff options
context:
space:
mode:
authorGiovanni Cabiddu <giovanni.cabiddu@intel.com>2020-09-09 11:59:40 +0100
committerHerbert Xu <herbert@gondor.apana.org.au>2020-09-18 17:20:10 +1000
commit37b15fa97e12796854ed41d3a6d7e8f54e27ef1f (patch)
treec4f20edec50d7010b218ceb43161f5ec6c3a5901 /drivers/crypto/qat/qat_c3xxx
parent92db31989944c0f0da9eb184272901f8af08d516 (diff)
downloadlinux-stable-37b15fa97e12796854ed41d3a6d7e8f54e27ef1f.tar.gz
linux-stable-37b15fa97e12796854ed41d3a6d7e8f54e27ef1f.tar.bz2
linux-stable-37b15fa97e12796854ed41d3a6d7e8f54e27ef1f.zip
crypto: qat - use PCI_VDEVICE
Build pci_device_id structure using the PCI_VDEVICE macro. This removes any references to the ADF_SYSTEM_DEVICE macro. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Signed-off-by: Giovanni Cabiddu <giovanni.cabiddu@intel.com> Reviewed-by: Fiona Trahe <fiona.trahe@intel.com> Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com> Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_c3xxx')
-rw-r--r--drivers/crypto/qat/qat_c3xxx/adf_drv.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/drivers/crypto/qat/qat_c3xxx/adf_drv.c b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
index 281f5bc13c27..6057dc9f1572 100644
--- a/drivers/crypto/qat/qat_c3xxx/adf_drv.c
+++ b/drivers/crypto/qat/qat_c3xxx/adf_drv.c
@@ -18,12 +18,9 @@
#include <adf_cfg.h>
#include "adf_c3xxx_hw_data.h"
-#define ADF_SYSTEM_DEVICE(device_id) \
- {PCI_DEVICE(PCI_VENDOR_ID_INTEL, device_id)}
-
static const struct pci_device_id adf_pci_tbl[] = {
- ADF_SYSTEM_DEVICE(PCI_DEVICE_ID_INTEL_QAT_C3XXX),
- {0,}
+ { PCI_VDEVICE(INTEL, PCI_DEVICE_ID_INTEL_QAT_C3XXX), },
+ { }
};
MODULE_DEVICE_TABLE(pci, adf_pci_tbl);