int cpu;
        struct task_struct *task;
 
-       if (rdi->flags & RVT_FLAG_CQ_INIT_DRIVER) {
-               rvt_pr_info(rdi, "Driver is doing CQ init.\n");
-               return 0;
-       }
-
        if (rdi->worker)
                return 0;
        rdi->worker = kzalloc(sizeof(*rdi->worker), GFP_KERNEL);
 
        unsigned lk_tab_size;
        int i;
 
-       if (rdi->flags & RVT_FLAG_MR_INIT_DRIVER) {
-               rvt_pr_info(rdi, "Driver is doing MR init.\n");
-               return 0;
-       }
-
        /*
         * The top hfi1_lkey_table_size bits are used to index the
         * table.  The lower 8 bits can be owned by the user (copied from
 
        int i;
        int ret = -ENOMEM;
 
-       if (rdi->flags & RVT_FLAG_QP_INIT_DRIVER) {
-               rvt_pr_info(rdi, "Driver is doing QP init.\n");
-               return 0;
-       }
-
        if (!rdi->dparms.qp_table_size)
                return -EINVAL;
 
        if (!rdi->qp_dev)
                return;
 
-       if (rdi->flags & RVT_FLAG_QP_INIT_DRIVER)
-               return; /* driver did the qp init so nothing else to do */
-
        kfree(rdi->qp_dev->qp_table);
        free_qpn_table(&rdi->qp_dev->qpn_table);
        kfree(rdi->qp_dev);
 
 #include <rdma/rdmavt_mr.h>
 #include <rdma/rdmavt_qp.h>
 
-/*
- * For some of the IBTA objects there will likely be some
- * initializations required. We need flags to determine whether it is OK
- * for rdmavt to do this or not. This does not imply any functions of a
- * partiuclar IBTA object are overridden.
- */
-#define RVT_FLAG_MR_INIT_DRIVER BIT(1)
-#define RVT_FLAG_QP_INIT_DRIVER BIT(2)
-#define RVT_FLAG_CQ_INIT_DRIVER BIT(3)
-
 #define RVT_MAX_PKEY_VALUES 16
 
 struct rvt_ibport {