BIT_ULL(IB_USER_VERBS_CMD_REG_MR) |
                BIT_ULL(IB_USER_VERBS_CMD_REREG_MR) |
                BIT_ULL(IB_USER_VERBS_CMD_RESIZE_CQ);
-
-       device->uverbs_ex_cmd_mask =
-               BIT_ULL(IB_USER_VERBS_EX_CMD_CREATE_CQ) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_CREATE_FLOW) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_CREATE_QP) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_CREATE_RWQ_IND_TBL) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_CREATE_WQ) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_DESTROY_FLOW) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_DESTROY_RWQ_IND_TBL) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_DESTROY_WQ) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_MODIFY_CQ) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_MODIFY_QP) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_MODIFY_WQ) |
-               BIT_ULL(IB_USER_VERBS_EX_CMD_QUERY_DEVICE);
-
        return device;
 }
 EXPORT_SYMBOL(_ib_alloc_device);
 
 
        method_elm->is_ex = def->write.is_ex;
        method_elm->handler = def->func_write;
-       if (def->write.is_ex)
-               method_elm->disabled = !(ibdev->uverbs_ex_cmd_mask &
-                                        BIT_ULL(def->write.command_num));
-       else
+       if (!def->write.is_ex)
                method_elm->disabled = !(ibdev->uverbs_cmd_mask &
                                         BIT_ULL(def->write.command_num));