/* This function first allocates queues via qdio_allocate() and on success establishes them via qdio_establish().  */
int qdio_initialize(struct qdio_initialize *init_data)
/* This function first allocates queues via qdio_allocate() and on success establishes them via qdio_establish().  */
int qdio_initialize(struct qdio_initialize *init_data)
{
	int rc;
	rc = qdio_allocate(init_data);
	if (rc)
		return rc;
	rc = qdio_establish(init_data);
	if (rc)
		qdio_free(init_data->cdev);
	return rc;
}