Commit 5995752e authored by Bruce Allan's avatar Bruce Allan Committed by Herbert Xu

crypto: qat - remove redundant struct elem

The element pci_dev_id in the struct adf_hw_device_data is redundant since
the PCI device id can be retrieved from the struct pci_dev.
Signed-off-by: default avatarBruce Allan <bruce.w.allan@intel.com>
Signed-off-by: default avatarTadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: default avatarHerbert Xu <herbert@gondor.apana.org.au>
parent 03952d98
...@@ -153,7 +153,6 @@ struct adf_hw_device_data { ...@@ -153,7 +153,6 @@ struct adf_hw_device_data {
void (*enable_ints)(struct adf_accel_dev *accel_dev); void (*enable_ints)(struct adf_accel_dev *accel_dev);
const char *fw_name; const char *fw_name;
const char *fw_mmp_name; const char *fw_mmp_name;
uint32_t pci_dev_id;
uint32_t fuses; uint32_t fuses;
uint32_t accel_capabilities_mask; uint32_t accel_capabilities_mask;
uint16_t accel_mask; uint16_t accel_mask;
......
...@@ -208,7 +208,6 @@ void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data) ...@@ -208,7 +208,6 @@ void adf_init_hw_data_dh895xcc(struct adf_hw_device_data *hw_data)
hw_data->instance_id = dh895xcc_class.instances++; hw_data->instance_id = dh895xcc_class.instances++;
hw_data->num_banks = ADF_DH895XCC_ETR_MAX_BANKS; hw_data->num_banks = ADF_DH895XCC_ETR_MAX_BANKS;
hw_data->num_accel = ADF_DH895XCC_MAX_ACCELERATORS; hw_data->num_accel = ADF_DH895XCC_MAX_ACCELERATORS;
hw_data->pci_dev_id = ADF_DH895XCC_PCI_DEVICE_ID;
hw_data->num_logical_accel = 1; hw_data->num_logical_accel = 1;
hw_data->num_engines = ADF_DH895XCC_MAX_ACCELENGINES; hw_data->num_engines = ADF_DH895XCC_MAX_ACCELENGINES;
hw_data->tx_rx_gap = ADF_DH895XCC_RX_RINGS_OFFSET; hw_data->tx_rx_gap = ADF_DH895XCC_RX_RINGS_OFFSET;
......
...@@ -100,7 +100,7 @@ static void adf_cleanup_accel(struct adf_accel_dev *accel_dev) ...@@ -100,7 +100,7 @@ static void adf_cleanup_accel(struct adf_accel_dev *accel_dev)
} }
if (accel_dev->hw_device) { if (accel_dev->hw_device) {
switch (accel_dev->hw_device->pci_dev_id) { switch (accel_pci_dev->pci_dev->device) {
case ADF_DH895XCC_PCI_DEVICE_ID: case ADF_DH895XCC_PCI_DEVICE_ID:
adf_clean_hw_data_dh895xcc(accel_dev->hw_device); adf_clean_hw_data_dh895xcc(accel_dev->hw_device);
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment