/* This function gets called by the common i/o layer and sets an adapter into state offline.  */
static int zfcp_ccw_set_offline(struct ccw_device *cdev)
/* This function gets called by the common i/o layer and sets an adapter into state offline.  */
static int zfcp_ccw_set_offline(struct ccw_device *cdev)
{
	struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev);
	if (!adapter)
		return 0;
	zfcp_erp_adapter_shutdown(adapter, 0, "ccsoff1", NULL);
	zfcp_erp_wait(adapter);
	zfcp_ccw_adapter_put(adapter);
	return 0;
}