diff options
author | Tadeusz Struk <tadeusz.struk@intel.com> | 2014-10-21 11:01:06 -0700 |
---|---|---|
committer | Herbert Xu <herbert@gondor.apana.org.au> | 2014-11-06 23:14:59 +0800 |
commit | a727c4b6e523ba2d91854e8145542be74cfd9bab (patch) | |
tree | ea3a75c2153d0b014817900c274b76ca5ab197df /drivers/crypto/qat/qat_common/qat_hal.c | |
parent | 304576a776cc2fea7d40e6d7a58e4d4124f97f58 (diff) | |
download | linux-a727c4b6e523ba2d91854e8145542be74cfd9bab.tar.gz linux-a727c4b6e523ba2d91854e8145542be74cfd9bab.tar.bz2 linux-a727c4b6e523ba2d91854e8145542be74cfd9bab.zip |
crypto: qat - Move BAR definitions to device specific module
Move PCI BARs definitions to device specific module where it belongs.
Signed-off-by: Tadeusz Struk <tadeusz.struk@intel.com>
Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
Diffstat (limited to 'drivers/crypto/qat/qat_common/qat_hal.c')
-rw-r--r-- | drivers/crypto/qat/qat_common/qat_hal.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/crypto/qat/qat_common/qat_hal.c b/drivers/crypto/qat/qat_common/qat_hal.c index 9b8a31521ff3..b818c19713bf 100644 --- a/drivers/crypto/qat/qat_common/qat_hal.c +++ b/drivers/crypto/qat/qat_common/qat_hal.c @@ -679,7 +679,8 @@ int qat_hal_init(struct adf_accel_dev *accel_dev) struct icp_qat_fw_loader_handle *handle; struct adf_accel_pci *pci_info = &accel_dev->accel_pci_dev; struct adf_hw_device_data *hw_data = accel_dev->hw_device; - struct adf_bar *bar = &pci_info->pci_bars[ADF_DH895XCC_PMISC_BAR]; + struct adf_bar *bar = + &pci_info->pci_bars[hw_data->get_misc_bar_id(hw_data)]; handle = kzalloc(sizeof(*handle), GFP_KERNEL); if (!handle) |