/* zfcp_ccw_shutdown - handle shutdown from cio @cdev: device for adapter to shutdown.  */
static void zfcp_ccw_shutdown(struct ccw_device *cdev)
/* zfcp_ccw_shutdown - handle shutdown from cio @cdev: device for adapter to shutdown.  */
static void zfcp_ccw_shutdown(struct ccw_device *cdev)
{
	struct zfcp_adapter *adapter = zfcp_ccw_adapter_by_cdev(cdev);
	if (!adapter)
		return;
	zfcp_erp_adapter_shutdown(adapter, 0, "ccshut1", NULL);
	zfcp_erp_wait(adapter);
	zfcp_erp_thread_kill(adapter);
	zfcp_ccw_adapter_put(adapter);
}