/* This function calls qdio_shutdown() for @cdev with method @how. and qdio_free(). The qdio_free() return value is ignored since !irq_ptr is already checked.  */
int qdio_cleanup(struct ccw_device *cdev, int how)
/* This function calls qdio_shutdown() for @cdev with method @how. and qdio_free(). The qdio_free() return value is ignored since !irq_ptr is already checked.  */
int qdio_cleanup(struct ccw_device *cdev, int how)
{
	struct qdio_irq *irq_ptr = cdev->private->qdio_data;
	int rc;
	if (!irq_ptr)
		return -ENODEV;
	rc = qdio_shutdown(cdev, how);
	qdio_free(cdev);
	return rc;
}