Message ID | 20210225143236.3543360-1-arnd@kernel.org |
---|---|
State | New |
Headers | show |
Series | iwlwifi: fix link error without CONFIG_IWLMVM | expand |
diff --git a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c index 314fec4a89ad..a2f5c4fc2324 100644 --- a/drivers/net/wireless/intel/iwlwifi/pcie/drv.c +++ b/drivers/net/wireless/intel/iwlwifi/pcie/drv.c @@ -1113,7 +1113,8 @@ static int iwl_pci_probe(struct pci_dev *pdev, const struct pci_device_id *ent) * here. But if we detect that the MAC type is actually SnJ, * we should switch to it here to avoid problems later. */ - if (CSR_HW_REV_TYPE(iwl_trans->hw_rev) == IWL_CFG_MAC_TYPE_SNJ) + if (IS_ENABLED(CONFIG_IWLMVM) && + CSR_HW_REV_TYPE(iwl_trans->hw_rev) == IWL_CFG_MAC_TYPE_SNJ) iwl_trans->trans_cfg = &iwl_so_trans_cfg; #if IS_ENABLED(CONFIG_IWLMVM)