* "dash" value). To keep hw_rev backwards compatible - we'll store it
         * in the old format.
         */
-       if (trans->cfg->trans.device_family >= IWL_DEVICE_FAMILY_8000) {
+       if (cfg->trans.device_family >= IWL_DEVICE_FAMILY_8000) {
                unsigned long flags;
 
                trans->hw_rev = (trans->hw_rev & 0xfff0) |
                 * in-order to recognize C step driver should read chip version
                 * id located at the AUX bus MISC address space.
                 */
-               ret = iwl_finish_nic_init(trans, &trans->cfg->trans);
+               ret = iwl_finish_nic_init(trans, &cfg->trans);
                if (ret)
                        goto out_no_pci;
 
 #if IS_ENABLED(CONFIG_IWLMVM)
        trans->hw_rf_id = iwl_read32(trans, CSR_HW_RF_ID);
 
-       if (trans->cfg == &iwlax210_2ax_cfg_so_hr_a0) {
+       if (cfg == &iwlax210_2ax_cfg_so_hr_a0) {
                if (trans->hw_rev == CSR_HW_REV_TYPE_TY) {
                        trans->cfg = &iwlax210_2ax_cfg_ty_gf_a0;
                } else if (CSR_HW_RF_ID_TYPE_CHIP_ID(trans->hw_rf_id) ==