/* css_sch_device_unregister - unregister a subchannel @sch: subchannel to be unregistered  */
void css_sch_device_unregister(struct subchannel *sch)
/* css_sch_device_unregister - unregister a subchannel @sch: subchannel to be unregistered  */
void css_sch_device_unregister(struct subchannel *sch)
{
	mutex_lock(&sch->reg_mutex);
	if (device_is_registered(&sch->dev))
		device_unregister(&sch->dev);
	mutex_unlock(&sch->reg_mutex);
}